-
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
Remove components-icon-button classname #19241
Conversation
The only issue I see with this proposal is that we might want to support |
I've restarted the failing build a few times by now. I'm not sure if the current failures are legitimate or not. It's making it difficult to have confidence in approving this. |
.components-icon-button.block-editor-block-switcher__toggle, | ||
.components-icon-button.block-editor-block-switcher__no-switcher-icon { | ||
.components-button.block-editor-block-switcher__toggle, | ||
.components-button.block-editor-block-switcher__no-switcher-icon { |
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.
Should I expect to see the .has-icon
modifier class here?
I see there's lots of examples where we're not including the modifier class when removing the icon-
portion. Is that intentional?
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.
I wanted to avoid the extra specificity when not needed. In most of these examples the extra has-icon has no impact we just want more specificity over the button styles;
7a828e6
to
888b20c
Compare
The test failures were due to a misplaced publish button. It should be all good now. |
WordPress/gutenberg#19241 broke the styling of our Jetpack sidebar button (again 😅) This is currently a problem on WP.com, where we just updated Gutenberg to 7.2.0. This commit updates the class selectors accordingly.
WordPress/gutenberg#19241 broke the styling of our Jetpack sidebar button (again 😅) This is currently a problem on WP.com, where we just updated Gutenberg to 7.2.0. This commit updates the class selectors accordingly.
Follow-up to #19193
This PR removes the
components-icon-button
and uses ahas-icon
modifier instead per our guidelines.Testing instructions