Skip to content

Commit ea687ba

Browse files
committed
Twenty-Twenty: Fix paragraph block alignment issues when used on a RTL website.
Twenty Twenty's `style.css` file has `/*rtl:ignore*/` for the `.has-text-align-left` class, but that was previously missing from the `.has-text-align-right` class. As a result, the theme overrides block library styles on the front-end (and not in the editor). This changeset adds the missing declaration. Props amirkamizi, mayankmajeji, ianbelanger, sabernhardt, hasanuzzamanshamim. Fixes #49447. git-svn-id: https://develop.svn.wordpress.org/trunk@53471 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7971c1b commit ea687ba

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/wp-content/themes/twentytwenty/style-rtl.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2788,7 +2788,7 @@ h2.entry-title {
27882788
}
27892789

27902790
.has-text-align-right {
2791-
text-align: left;
2791+
text-align: right;
27922792
}
27932793

27942794
.has-drop-cap:not(:focus)::first-letter {

src/wp-content/themes/twentytwenty/style.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2806,6 +2806,8 @@ h2.entry-title {
28062806
}
28072807

28082808
.has-text-align-right {
2809+
2810+
/*rtl:ignore*/
28092811
text-align: right;
28102812
}
28112813

0 commit comments

Comments
 (0)