Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Notice padding right depends on onClose prop #78

Merged
merged 2 commits into from
Jan 25, 2022

Conversation

siberry
Copy link
Collaborator

@siberry siberry commented Jan 4, 2022

Description

This PR changes the padding-right on the Notice component depending on whether or not it has an onClose function, which determines whether or not the dismiss button is included.

On Slack, 0.75rem was suggested. But then I saw 1rem is already used on the left side if there is no icon. I think 1rem looks a little better. Happy to change though!

Screenshots

Before

Screen Shot 2022-01-04 at 11 49 46 AM

After

Screen Shot 2022-01-04 at 11 49 37 AM

Screen Shot 2022-01-04 at 11 54 26 AM

@siberry siberry marked this pull request as ready for review January 4, 2022 16:50
@siberry siberry requested a review from a team as a code owner January 4, 2022 16:50
@seanmcintyre seanmcintyre added this to the 0.117.0 milestone Jan 21, 2022
@siberry siberry requested a review from seanmcintyre January 24, 2022 16:39
@seanmcintyre seanmcintyre merged commit 205d14e into main Jan 25, 2022
@seanmcintyre seanmcintyre deleted the notice-padding-right branch January 25, 2022 18:18
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants