Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add comment to explain the need for deprecated opacity styles
  • Loading branch information
Glen Davies committed Feb 2, 2022
commit 0c8329a7edba69afa6c7163349f83b35de0b3054
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 @@ -70,6 +70,10 @@
opacity: 0.5;
}

// The following styles are needed to support legacy blocks added prior to the update
// that moved opacity to a nested span.
// https://github.com/WordPress/gutenberg/pull/35065
// https://github.com/WordPress/gutenberg/pull/38362
@for $i from 1 through 10 {
&.has-background-dim.has-background-dim-#{ $i * 10 } {
&:not(.has-background-gradient)::before,
Expand Down