-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try adding some additional padding to the modal component. #16690
Conversation
@@ -61,7 +61,7 @@ | |||
.components-modal__header { | |||
box-sizing: border-box; | |||
border-bottom: $border-width solid $light-gray-500; | |||
padding: 0 $grid-size-large; | |||
padding: 0 ($grid-size * 3); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
($grid-size * 3)
feels a little weird to repeat so many times here. I'm wondering if this should be an additional variable: $grid-size-extra-large
or something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep! Just tested and confirmed a better feeling of comfort provided by the extra padding. Thanks for improving the small details, Kjell. It doesn't look like this extra padding interferes with the content at all either.
The padding is working well. I did notice one little thing bothering me... the close icon or Unfocused and unhovered Hovered |
Yeah, I agree, it looks weird. 😕 I'll try working on that in a followup PR. (Edit: I opened #16883 to try this out.) Thanks! |
* Add additional padding to the modal component. * Update block manager padding to match the new modal padding. * Make ($grid-size * 3) into a variable
* Add additional padding to the modal component. * Update block manager padding to match the new modal padding. * Make ($grid-size * 3) into a variable
The modal component currently has
16px
of padding all the way around it. This is fine, but it does leave things feeling a little closed in. This PR updates that from16px
to24px
instead. This is more padding than we typically use around these sorts of containers, but I think the extra breathing room makes the modals feel a lot more comfortable.Before:
After