-
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
components: Remove duplicated space utilities #32852
Conversation
Size Change: -11 B (0%) Total Size: 1.04 MB
ℹ️ View Unchanged
|
@sarayourfriend would you mind rebasing, since the merging of #32566 caused some conflicts? The new Thank you! |
77fa4eb
to
4eede0b
Compare
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.
Nice tidy up, LGTM 🚀
For the record, there were more instances of space()
, but they were already pointing at the "newer" function and therefore didn't need updating.
4eede0b
to
7bca4d4
Compare
7bca4d4
to
6b3ad2f
Compare
Description
Removes the old
space
utility and replaces it with the one fromui
. In a follow up PR I'll move theui/utils/space
into the upperutils
folder.Note: The old space utility used a base of 8 and the new one uses a base of 4, so I just had to double all the values being passed into the old utility.
How has this been tested?
Test in storybook. Go to each of the affected components (
BaseControl
,RangeControl
,Navigation
, andCard
) and compare against production (https://wordpress.github.ui/gutenberg) and ensure that the padding and spacings are all the same.Types of changes
Janitorial, clean up
Checklist:
*.native.js
files for terms that need renaming or removal).