From cedf57cc22e8d31de4526187fa0676f73fb38f82 Mon Sep 17 00:00:00 2001 From: Bart Kalisz Date: Mon, 8 Nov 2021 16:01:52 +0100 Subject: [PATCH] Fix Cover Block's default background dimming styles --- packages/block-library/src/cover/style.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/block-library/src/cover/style.scss b/packages/block-library/src/cover/style.scss index 0b29c23c595b73..240e398e00d90f 100644 --- a/packages/block-library/src/cover/style.scss +++ b/packages/block-library/src/cover/style.scss @@ -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;