-
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
Editor: Standardize header button size to 32px #58532
Conversation
padding: 6px; | ||
height: $button-size-compact; | ||
min-width: $button-size-compact; | ||
padding: 4px; |
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 padding change follows this approach:
padding: 4px; |
@@ -103,15 +103,18 @@ | |||
|
|||
.edit-widgets-header-toolbar { | |||
gap: $grid-unit-10; | |||
// Some plugins add buttons here despite best practices. | |||
// Push them a bit rightwards to fit the top toolbar. | |||
margin-right: $grid-unit-10; |
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 follows this approach:
gutenberg/packages/editor/src/components/document-tools/style.scss
Lines 70 to 72 in b5a3126
// Some plugins add buttons here despite best practices. | |
// Push them a bit rightwards to fit the top toolbar. | |
margin-right: $grid-unit-10; |
This margin also prevents the focus from being cut off in the Widget Editor.
Size Change: +25 B (0%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
Thank you for finding it! Fixed with dd75a3d. |
Flaky tests detected in dd75a3d. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7739849344
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
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.
Looks good to me 👍 I tested the post editor, site editor, and widgets editor.
Would be good to get @jasmussen to check that this is all going according to his plan 🙂
Ship it as fast as you can! And thank you! |
Part of #58293
Related to #56635
What?
This PR standardizes the button size to 32px in the header of Post Editor, Site Editor, and Widget Editor.
Why?
As part of the unification of UI component sizes proposed in #46734
Testing Instructions
Previous behavior should not be affected. Check that there are no buttons other than 32px in all editors.
Screenshots or screencast
The biggest change due to this PR is the Widget Editor. In the screenshot below, the focus style is applied to all buttons in the header and the size changes are compared.
Before
After