From 8c6eb95739b88437d98346f8d44f5c92d1b8241d Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Fri, 25 Oct 2024 10:16:23 +1300 Subject: [PATCH] Hide only empty elements which are allowed Some other empty elements are added via scripts, eg. iframe --- mu-plugins/blocks/notice/postcss/style.pcss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mu-plugins/blocks/notice/postcss/style.pcss b/mu-plugins/blocks/notice/postcss/style.pcss index 4527ddee..24fee740 100644 --- a/mu-plugins/blocks/notice/postcss/style.pcss +++ b/mu-plugins/blocks/notice/postcss/style.pcss @@ -67,7 +67,9 @@ .wp-block-wporg-notice__content { align-self: center; - & :empty:not(br), + & p:empty, + & ul:empty, + & ol:empty, & br:first-child { display: none; }