From ea8dcfa3ae512a4a1c02e3eb9bd2b80a9d244419 Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Thu, 21 Jul 2022 17:15:48 -0400 Subject: [PATCH] CSS: Update class name after gutenberg 13.7 change 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. --- .../blocks/global-header-footer/postcss/_common.pcss | 12 ++++++------ .../global-header-footer/postcss/footer/logos.pcss | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mu-plugins/blocks/global-header-footer/postcss/_common.pcss b/mu-plugins/blocks/global-header-footer/postcss/_common.pcss index 7239897c1..8ce316dca 100644 --- a/mu-plugins/blocks/global-header-footer/postcss/_common.pcss +++ b/mu-plugins/blocks/global-header-footer/postcss/_common.pcss @@ -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; } diff --git a/mu-plugins/blocks/global-header-footer/postcss/footer/logos.pcss b/mu-plugins/blocks/global-header-footer/postcss/footer/logos.pcss index d282097e5..8866ed41b 100644 --- a/mu-plugins/blocks/global-header-footer/postcss/footer/logos.pcss +++ b/mu-plugins/blocks/global-header-footer/postcss/footer/logos.pcss @@ -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;