Skip to content

Commit

Permalink
Fixes #38761 by removing obsolete ::before pseudo element (#38762)
Browse files Browse the repository at this point in the history
  • Loading branch information
webmandesign authored Feb 25, 2022
1 parent f833f82 commit 0332bb9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/block-library/src/cover/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,14 @@
}

// the first selector is required for old Cover markup
&.has-background-dim::before,
.has-background-dim::before {
&.has-background-dim::before {
content: "";
background-color: inherit;
}

// The first selector is required for old Cover markup/
// Keep .wp-block-cover__gradient-background for v8 deprecation.
&.has-background-dim:not(.has-background-gradient)::before,
.has-background-dim:not(.has-background-gradient)::before,
.wp-block-cover__background,
.wp-block-cover__gradient-background {
position: absolute;
Expand Down

0 comments on commit 0332bb9

Please sign in to comment.