From b886ab6595e4a092565660ddcb5e809835c559ee Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Tue, 13 Sep 2022 08:45:18 +0000 Subject: [PATCH] Twenty Twenty: Improve support for Post Title block alignment. This changeset ensures alignement settings are correctly reflected for the Post Title block in the Editor. Props smit08, kajalgohel, devtanbir, sabernhardt, audrasjb. Fixes #56167. git-svn-id: https://develop.svn.wordpress.org/trunk@54141 602fd350-edb4-49c9-b593-d223f7449a82 --- .../assets/css/editor-style-block-rtl.css | 8 ++++++++ .../twentytwenty/assets/css/editor-style-block.css | 12 ++++++++++++ 2 files changed, 20 insertions(+) diff --git a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css index 041c0524d8..09645053da 100644 --- a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css +++ b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css @@ -306,6 +306,14 @@ Inter variable font. Usage: text-align: center; } +.editor-styles-wrapper .wp-block-post-title.has-text-align-left { + text-align: left; +} + +.editor-styles-wrapper .wp-block-post-title.has-text-align-right { + text-align: right; +} + /* DROP CAP */ .editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter { diff --git a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css index 270035ce70..0cdb69ce84 100644 --- a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css +++ b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css @@ -306,6 +306,18 @@ Inter variable font. Usage: text-align: center; } +.editor-styles-wrapper .wp-block-post-title.has-text-align-left { + + /*rtl:ignore*/ + text-align: left; +} + +.editor-styles-wrapper .wp-block-post-title.has-text-align-right { + + /*rtl:ignore*/ + text-align: right; +} + /* DROP CAP */ .editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter {