Skip to content

Commit

Permalink
CSS: Update class name after gutenberg 13.7 change (#222)
Browse files Browse the repository at this point in the history
The `wp-container-*` class is no longer added to all blocks, instead we should use the `wp-block-*` class. The selector is necessary for specificity, so we can't just remove it.
  • Loading branch information
ryelle authored Jul 26, 2022
1 parent 3848d0d commit 6e62a5b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions mu-plugins/blocks/global-header-footer/postcss/_common.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ html {
* @link https://github.com/WordPress/wporg-news-2021/pull/30
*/

[class*="wp-container-"].global-header,
[class*="wp-container-"].global-footer,
[class*="wp-container-"].global-header > * + *,
[class*="wp-container-"].global-footer > * + *,
.global-header [class*="wp-container-"] > * + *,
.global-footer [class*="wp-container-"] > * + * {
[class*="wp-block-"].global-header,
[class*="wp-block-"].global-footer,
[class*="wp-block-"].global-header > * + *,
[class*="wp-block-"].global-footer > * + *,
.global-header [class*="wp-block-"] > * + *,
.global-footer [class*="wp-block-"] > * + * {
margin-top: initial;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.wp-block-group.global-footer [class*="wp-container-"].global-footer__logos-container {
.wp-block-group.global-footer .global-footer__logos-container {
position: relative;
display: flex;
flex-wrap: wrap;
Expand Down

0 comments on commit 6e62a5b

Please sign in to comment.