-
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
ToolbarButton: Set size to "compact" #67440
Conversation
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.
@richtabor Thanks for flagging! Addressed in #67502 |
* ToolbarButton: Set size to "compact" * Add changelog * Update snapshots Co-authored-by: mirka <[email protected]> Co-authored-by: tyxla <[email protected]>
* ToolbarButton: Set size to "compact" * Add changelog * Update snapshots Co-authored-by: mirka <[email protected]> Co-authored-by: tyxla <[email protected]>
In preparation for #65751
What?
Add a
size="compact"
to the internalButton
used inToolbarButton
.Why?
The size styles are largely overridden by ToolbarButton, but this size variant is closest to what is intended. This PR is mostly just to prevent breakage when the Button size default changes to 40px. There should be no visual changes.
Testing Instructions
See the Storybook stories for Toolbar. There should be no visual changes, including changes in focus indicators or click target sizes.
There are two internal implementation "variants" in the ToolbarButton — flip this logic to check both:
gutenberg/packages/components/src/toolbar/toolbar-button/index.tsx
Line 51 in 9ffbd9c