-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Modal] Removed inconsistent padding of modal section #2072
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
Conversation
|
👋 Thanks for opening your first pull request. A contributor should give feedback soon. If you haven’t already, please check out the contributing guidelines. |
dleroux
left a comment
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.
Thanks for doing this @mitchmaps ! Although I think the issue might have not been correct. The padding is correct on the .section, the issue is that there is no reason to have different rules for :first-of-type. Unless @AdamWhitcroft thinks it should be the be same all around (top right bottom left), we simply need to remove the :first-of-type.
|
Can this also be fixed in polaris-rails, and perhaps Shopify/shopify for consistency? |
|
Hey @dleroux, not super sure I follow what you mean, but from my POV the |
|
Ok perfect. Just to clarify, the |
| padding: spacing() spacing(loose); | ||
| padding: spacing(loose); | ||
|
|
||
| &:first-of-type { |
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.
🔥
0cb248a to
d8254d3
Compare
7cdb40e to
0f5a704
Compare
|
Thanks for doing this @mitchmaps! 🐑 🇮🇹 🎉 Following @kaelig comment is this something you could tackle in rails? |
|
No problem @dleroux ! And yes I'll hop into that on Monday! |
|
@dleroux looks like this change has already been implemented in polaris-rails upon inspection :) |

Why are these changes introduced?
Fixes #2061
What issue is this PR addressing?
The Modal component currently has an inconsistent top and bottom spacing in the section subcomponent.
What is this pull request doing?
This very simple change removes a repeated function call that made the top padding set to the base Polaris token value rather than the correct loose one. Now the top and bottom padding for the section is set to loose.
Before
After