Skip to content

Commit

Permalink
Editor: Correctly apply Button block styles for classic themes
Browse files Browse the repository at this point in the history
In [54358], styling for Button blocks that had been removed from classic themes was reintroduced. However, it was added with a global scope, whereas editor styles are usually added with a `.editor-styles-wrapper` selector, which makes them more specific.

This change modifies the way that classic theme styles are added so that they also get wrapped in an `.editor-styles-wrapper` selector to match specificity.

Furthermore, adjust specificity for some Button block related styling in the editor for the Twenty Twelve and Twenty Twenty themes.

Merges [WordPress/gutenberg#44731 Gutenberg PR 44731] into trunk.

Follow-up to [54358].
Props scruffian, cbravobernal, sabernhardt, audrasjb.
See #56467.
Built from https://develop.svn.wordpress.org/trunk@54687


git-svn-id: http://core.svn.wordpress.org/trunk@54239 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
Bernhard Reiter authored and Bernhard Reiter committed Oct 25, 2022
1 parent 6a582d3 commit e7f2226
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions css/editor-blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ p.has-drop-cap:not(:focus)::first-letter {
background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6);
background-image: linear-gradient(to bottom, #f4f4f4, #e6e6e6);
background-repeat: repeat-x;
color: #7c7c7c;
}

/* Separator */
Expand Down

0 comments on commit e7f2226

Please sign in to comment.