Skip to content

Commit

Permalink
Fix Cover Block's default background dimming styles (#36312)
Browse files Browse the repository at this point in the history
  • Loading branch information
WunderBart committed Nov 8, 2021
1 parent 57ebf86 commit 4ddbddb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/block-library/src/cover/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@
* - Issue with background color specificity: https://github.com/WordPress/gutenberg/issues/26545
* - Issue with alternative fix: https://github.com/WordPress/gutenberg/issues/26545
*/
&.has-background-dim:not([class*="-background-color"]) {
.has-background-dim:not([class*="-background-color"]) {
background-color: $black;
}

&.has-background-dim::before {
.has-background-dim::before {
content: "";
background-color: inherit;
}

&.has-background-dim:not(.has-background-gradient)::before,
.has-background-dim:not(.has-background-gradient)::before,
.wp-block-cover__gradient-background {
position: absolute;
top: 0;
Expand Down

0 comments on commit 4ddbddb

Please sign in to comment.