-
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
Try: Remove important on disabled switcher state. #29552
Conversation
Size Change: -3 B (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
Seems like the rule is to ensure the block switch icon is "grayed" out when it's disabled (for normal icons and colored icons like embeds..), if we don't want that anymore, can we just remove the rule? |
10d5e13
to
9ede50d
Compare
Not sure I understand :P What impact does the rule has no? (after your changes) none? or does it still trigger in some cases? |
Sorry, it's definitely a bit fuzzy. This is the full rule in trunk:
This PR just removes the !important. With the rule present, !important or not, a locked block, or a block without transformations, looks like this: With the entire rule removed, it looks like this: Note the semi transparent block switcher icon. The removal of the !important rule just makes it easier to let the icon colors bleed through. |
Ok this makes sense :) Thanks. |
9ede50d
to
45f9499
Compare
Description
Fixes #29130 by removing an !important selector.
How has this been tested?
Paste this in your functions.php
Now you have a new CPT, "Podcasts", create a new such and note how the blocks are locked. By being locked, they can't be transformed, meaning the rule to ensure no hover style on the block switcher icon takes effect:
This icon should stay black even when hovering.
Checklist: