From ea687badfd1dc80a72336fdc19509fc29eff56f6 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Mon, 6 Jun 2022 21:40:56 +0000 Subject: [PATCH] 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 --- src/wp-content/themes/twentytwenty/style-rtl.css | 2 +- src/wp-content/themes/twentytwenty/style.css | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-content/themes/twentytwenty/style-rtl.css b/src/wp-content/themes/twentytwenty/style-rtl.css index 77ec6bcb0b..f865da5967 100644 --- a/src/wp-content/themes/twentytwenty/style-rtl.css +++ b/src/wp-content/themes/twentytwenty/style-rtl.css @@ -2788,7 +2788,7 @@ h2.entry-title { } .has-text-align-right { - text-align: left; + text-align: right; } .has-drop-cap:not(:focus)::first-letter { diff --git a/src/wp-content/themes/twentytwenty/style.css b/src/wp-content/themes/twentytwenty/style.css index 231104da6c..f6a72a9e47 100644 --- a/src/wp-content/themes/twentytwenty/style.css +++ b/src/wp-content/themes/twentytwenty/style.css @@ -2806,6 +2806,8 @@ h2.entry-title { } .has-text-align-right { + + /*rtl:ignore*/ text-align: right; }