-
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 inserter size on widgets screen header #33118
Conversation
Size Change: +2 B (0%) Total Size: 1.05 MB
ℹ️ View Unchanged
|
Good to know, thanks :) |
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 👍
> .components-button.has-icon, | ||
> .components-dropdown > .components-button.has-icon { | ||
// Specificity bump needed to offset https://github.com/WordPress/gutenberg/blob/8ea29cb04412c80c9adf7c1db0e816d6a0ac1232/packages/components/src/toolbar/style.scss#L76 | ||
> .components-button.has-icon.has-icon.has-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.
Is it necessary to add it 3 times?
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.
The rule we're overriding has 4 classnames, so I thought it would be best to have 5 to be on the safe side 😅
Description
Fixes #33061 by increasing specificity of Widgets screen inserter selectors.
Note: this shouldn't need to be backported to Core as the change that caused the issue wasn't backported either.
How has this been tested?
Go to Widgets screen, check inserter in the header is the correct size (36x36 px)
Screenshots
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist:
*.native.js
files for terms that need renaming or removal).