Skip to content

Commit

Permalink
Add user preset background color css var to Cover block as it doesn't…
Browse files Browse the repository at this point in the history
… use the .has-background class
  • Loading branch information
Glen Davies committed Apr 21, 2022
1 parent 9a2b351 commit 9e9bd1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/block-library/src/cover/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
background-color: $black;
}

[class*="-background-color"] {
background-color: var(--wp--user--preset--background-color);
}

.has-background-dim.has-background-gradient {
background-color: transparent;
}
Expand Down

0 comments on commit 9e9bd1d

Please sign in to comment.