diff --git a/packages/block-library/src/quote/theme.scss b/packages/block-library/src/quote/theme.scss index 5bcccbd60eefc4..2c5983003986a1 100644 --- a/packages/block-library/src/quote/theme.scss +++ b/packages/block-library/src/quote/theme.scss @@ -10,19 +10,21 @@ font-style: normal; } - &.has-text-align-right { + &:where(.has-text-align-right) { border-left: none; border-right: 0.25em solid currentColor; padding-left: 0; padding-right: 1em; } - &.has-text-align-center { + &:where(.has-text-align-center) { border: none; padding-left: 0; } // .is-style-large and .is-large are kept for backwards compatibility. - &.is-style-plain, + // They are not wrapped in `:where()` to keep specificity as it was before + // they were deprecated. + &:where(.is-style-plain), &.is-style-large, &.is-large { border: none;