-
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
Fix: Remove font weight on toolbar tab button - #61254 #61308
Conversation
…tent with other toolbars
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.
Thanks for the PR!
This PR makes sense to me, but I would suggest further improvements.
These two buttons on the HTML block toolbar are the only elements with the CSS class .components-tab-button
. Additionally, this CSS class applies styles to the internal span
elements, but these two buttons do not have span
elements.
In other words, you should be able to delete everything below.
gutenberg/packages/components/src/toolbar/toolbar/style.scss
Lines 92 to 102 in 8cf7f34
// @todo We should extract the tabs styles to the tabs component itself | |
&.components-tab-button { | |
font-weight: 500; | |
span { | |
display: inline-block; | |
padding-left: 0; | |
padding-right: 0; | |
position: relative; | |
} | |
} |
className="components-tab-button" |
className="components-tab-button" |
Thanks @t-hamano, I would make the changes asap. |
Good PR 👍 👍 |
Hi @t-hamano, I have reworked on the PR and updated it based on your inputs. Thank You. |
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! Thanks for the update.
Before:
After:
Normally we would need to update CHANGELOG when changes are made to the components
package, but for this PR we're just removing styles that are no longer in use, so I think we don't need to.
What?
Why?
How?
Font Weight - 500
to theCustom HTML
block toolbar.Testing Instructions
Custom HTML
blockHTML and Preview
, you can see the font weight is now 400.Testing Instructions for Keyboard
Screenshots or screencast