-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Global Styles: fix specificity conflict of blocks with single classes…
… as selectors (#29378) We want the source order specificity for presets to be higher than for block styles, to fix cases in which the block selector has the same specificity as the class. Ex: - an user attaches the .has-white-color class to a block of type "my block", whose selector is .wp-block-my-block. - the themes targets the color of "my block" as well, generating a rule with the .wp-block-my-block selector. The color applied to the block that was tweaked by the user will be the last in the source.
- Loading branch information
Showing
2 changed files
with
48 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters