-
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
Update main toolbar buttons to all be compact #56635
Conversation
Size Change: -52 B (0%) Total Size: 1.72 MB
ℹ️ View Unchanged
|
@@ -1,7 +1,7 @@ | |||
.edit-site-document-actions { | |||
display: flex; | |||
align-items: center; | |||
height: $button-size; | |||
height: 32px; |
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.
You could use the $button-size-compact
sass variable here
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 one! Done.
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.
One note: this change produces a 14px top/bottom gap between button and boundary. I'd be in favor of reducing the top bar height to 56px so that the spacing is aligned to the 4px scale. Certainly doesn't need to happen here though.
e6e9c4f
to
098a161
Compare
I could've sworn I tested that. Not intentional (should be 8px gap just like the block toolbar), and I will follow up 👍 👍 |
With Gutenberg 17.3 (PR WordPress/gutenberg#56635) All the button icons are now displayed as "compact", which makes the width 32px (from 36px). This change makes it so we have no space around the icon (horizontally). This change removes the icon size override, reverting it back to be 24px. Leaving it with the expected 8px spacing.
With Gutenberg 17.3 (PR WordPress/gutenberg#56635) All the button icons are now displayed as "compact", which makes the width 32px (from 36px). This change makes it so we have no space around the icon (horizontally). This change removes the icon size override when in compact mode, reverting it back to be 24px. Leaving it with the expected 8px spacing.
With Gutenberg 17.3 (PR WordPress/gutenberg#56635) all the button icons are now displayed as "compact", which makes the width 32px (from 36px). Resulting in no space around the icon (horizontally). This change removes the icon size override when in compact mode. Effectively reverting the icon size back to be 24px. Leaving the same horizontal space as the WP icons.
What?
Alternative to #55079, with a smaller footprint. Make progress on #46734 by updating buttons in the top toolbar to be compact, ensuring that icon buttons, and inserter all have the same balance, where in trunk at the moment it's a mix of 32 and 36px, with subsequently uneven spacing and margins.
Post editor before:
after:
Site editor before:
after:
PR review feedback from the other PR is likely still relevant, but it has also been considered for this PR.
Testing Instructions
Test the buttons in the main toolbar at the top of the post and site editors. Functionally it should all be the same.