Skip to content

Commit

Permalink
Add some additional selectors to get around specificity issues with T…
Browse files Browse the repository at this point in the history
…wentyTwentyOne theme
  • Loading branch information
Glen Davies committed Sep 20, 2021
1 parent 03d9085 commit 68675e2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
11 changes: 11 additions & 0 deletions packages/block-library/src/cover/editor.scss
Expand Up @@ -41,6 +41,17 @@
text-align: left;
margin-left: 0;
margin-right: 0;
.block-editor-block-list__block:not(.has-text-color) {
color: $white;
}
}

&.is-light {
.wp-block-cover__inner-container {
.block-editor-block-list__block:not(.has-text-color) {
color: $black;
}
}
}

.wp-block-cover__placeholder-background-options {
Expand Down
8 changes: 6 additions & 2 deletions packages/block-library/src/cover/style.scss
Expand Up @@ -103,12 +103,16 @@
.wp-block-cover__inner-container {
width: 100%;
z-index: z-index(".wp-block-cover__inner-container");
color: $white;
*:not(.has-text-color) {
color: $white;
}
}

&.is-light {
.wp-block-cover__inner-container {
color: $black;
*:not(.has-text-color) {
color: $black;
}
}
}

Expand Down

0 comments on commit 68675e2

Please sign in to comment.