Skip to content

Commit

Permalink
Hide only empty elements which are allowed
Browse files Browse the repository at this point in the history
Some other empty elements are added via scripts, eg. iframe
  • Loading branch information
adamwoodnz committed Oct 24, 2024
1 parent 6058af1 commit 4392321
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mu-plugins/blocks/notice/postcss/style.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4392321

Please sign in to comment.