From d51e1e66d001ead38335410df4abb0646609b400 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Fri, 23 Jun 2023 14:51:44 +0000 Subject: [PATCH] Twenty Twenty: Fix Letter Case implementation. This changeset fixes Letter Case control implementation on the Button block, on both front-end and in the Editor. Props thakordarshil, pateljaymin, sabernhardt, panchalhimani711, mukesh27. See #58526. git-svn-id: https://develop.svn.wordpress.org/trunk@56000 602fd350-edb4-49c9-b593-d223f7449a82 --- .../twentytwenty/assets/css/editor-style-block-rtl.css | 5 +++++ .../themes/twentytwenty/assets/css/editor-style-block.css | 5 +++++ src/wp-content/themes/twentytwenty/style-rtl.css | 5 +++++ src/wp-content/themes/twentytwenty/style.css | 5 +++++ 4 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 7fd94367e0..4cc3333779 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 @@ -946,6 +946,11 @@ hr.wp-block-separator.is-style-dots::before { text-transform: uppercase; } +.wp-block-buttons[style*="text-transform"] .wp-block-button__link, +.wp-block-button[style*="text-transform"] .wp-block-button__link { + text-transform: inherit; +} + .editor-styles-wrapper .wp-block-button .wp-block-button__link.mce-content-body { line-height: 1.1; } 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 c4000ad70b..c8d1610ae4 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 @@ -950,6 +950,11 @@ hr.wp-block-separator.is-style-dots::before { text-transform: uppercase; } +.wp-block-buttons[style*="text-transform"] .wp-block-button__link, +.wp-block-button[style*="text-transform"] .wp-block-button__link { + text-transform: inherit; +} + .editor-styles-wrapper .wp-block-button .wp-block-button__link.mce-content-body { line-height: 1.1; } diff --git a/src/wp-content/themes/twentytwenty/style-rtl.css b/src/wp-content/themes/twentytwenty/style-rtl.css index e9200c45fe..cb02433f6e 100644 --- a/src/wp-content/themes/twentytwenty/style-rtl.css +++ b/src/wp-content/themes/twentytwenty/style-rtl.css @@ -3023,6 +3023,11 @@ h2.entry-title { padding: calc(1.1em - 0.2rem) calc(1.44em - 0.2rem); } +.wp-block-buttons[style*="text-transform"] .wp-block-button__link, +.wp-block-button[style*="text-transform"] .wp-block-button__link { + text-transform: inherit; +} + /* Block: Columns ---------------------------- */ .wp-block-columns.alignfull, diff --git a/src/wp-content/themes/twentytwenty/style.css b/src/wp-content/themes/twentytwenty/style.css index bd85ce4afe..393da269b4 100644 --- a/src/wp-content/themes/twentytwenty/style.css +++ b/src/wp-content/themes/twentytwenty/style.css @@ -3043,6 +3043,11 @@ h2.entry-title { padding: calc(1.1em - 0.2rem) calc(1.44em - 0.2rem); } +.wp-block-buttons[style*="text-transform"] .wp-block-button__link, +.wp-block-button[style*="text-transform"] .wp-block-button__link { + text-transform: inherit; +} + /* Block: Columns ---------------------------- */ .wp-block-columns.alignfull,