Skip to content

Commit

Permalink
Quote: Prevent block theme styles overriding global border and padding (
Browse files Browse the repository at this point in the history
#64045)

Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: ramonjd <[email protected]>
  • Loading branch information
4 people authored Aug 7, 2024
1 parent de33f91 commit 8e9034c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/block-library/src/quote/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8e9034c

Please sign in to comment.