-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
RangeControl: Fix space between icons and rail #36935
Conversation
Space between beforeIcon and range control and between afterIcon and range control were not equal.
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @imangm! In case you missed it, we'd love to have you join us in our Slack community, where we hold regularly weekly meetings open to anyone to coordinate with each other. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
Hello, @imangm Sorry for the late follow-up. Is there an issue we should link to this PR? |
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.
Hey @imangm , thank you for opening this PR! I'm not aware if the discrepancy in the spacing between the before and the after icons is there on purpose or not. I wonder if @jasmussen can help out on this (issue reported in #37801)
Also, would you mind adding an entry to the CHANGELOG?
@@ -58,7 +58,7 @@ export const BeforeIconWrapper = styled.span` | |||
export const AfterIconWrapper = styled.span` | |||
margin-top: ${ railHeight }px; | |||
|
|||
${ rtl( { marginLeft: 16 } ) } | |||
${ rtl( { marginLeft: 6 } ) } |
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.
This change seems fine since it matches the metrics of the BeforeIconWrapper as well.
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.
Cool, I just wasn't sure if the difference was on purpose or not.
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.
Thank you!
Thanks for the PR, it looks pretty safe to me. To the best of my knowledge, the Unrelated to this PR, it might be nice to look at using |
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.
LGTM 🚀
This can be merged as soon as a changelog entry gets added
Hey @ciampo! Not sure if I've done it properly since it's my first time doing it here, but I fetched the latest upstream version and updated changelog and committed it. Is it fine? |
Looks good to me, thank you! Going to merge now |
Description
Fixes #37801.
Space between beforeIcon and range control and between afterIcon and range control were not equal.
How has this been tested?
Screenshots
Types of changes
Checklist:
*.native.js
files for terms that need renaming or removal).