Skip to content

Commit

Permalink
Increase CSS specificity of text alignment classes
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Jun 4, 2024
1 parent ace8835 commit 99fe955
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/block-library/src/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,17 @@
}

// Text alignments.
.has-text-align-center {
// Increase specificity so that styles applied via the global styles can be overridden in block instances.
:root .has-text-align-center {
text-align: center;
}

.has-text-align-left {
:root .has-text-align-left {
/*rtl:ignore*/
text-align: left;
}

.has-text-align-right {
:root .has-text-align-right {
/*rtl:ignore*/
text-align: right;
}
Expand Down

0 comments on commit 99fe955

Please sign in to comment.