From 4267b760efd4d6b86d850a2c69301f075fc2d427 Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Sat, 17 Aug 2024 20:12:09 +0000 Subject: [PATCH] Twenty Twenty: Fixes pullquote block font size not changing. The pullquote block was not reflecting the size changes. This also accounts for letter spacing in the editor. Props kmadhak, SergeyBiryukov, nidhidhandhukiya, harshvaishnav, sabernhardt, shailu25. Fixes #55975. Built from https://develop.svn.wordpress.org/trunk@58908 git-svn-id: http://core.svn.wordpress.org/trunk@58304 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../assets/css/editor-style-block-rtl.css | 4 ++++ .../twentytwenty/assets/css/editor-style-block.css | 4 ++++ wp-content/themes/twentytwenty/style-rtl.css | 13 +++++++++++++ wp-content/themes/twentytwenty/style.css | 13 +++++++++++++ wp-includes/version.php | 2 +- 5 files changed, 35 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css b/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css index 3b94567345..2d9099e0ca 100644 --- a/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css +++ b/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css @@ -872,6 +872,10 @@ hr.wp-block-separator.is-style-dots::before { transform: translateY(-50%); } +.editor-styles-wrapper .wp-block-pullquote[style*="letter-spacing"] p { + letter-spacing: inherit; +} + .editor-styles-wrapper .wp-block-pullquote__citation, .editor-styles-wrapper .wp-block-pullquote cite, .editor-styles-wrapper .wp-block-pullquote footer { diff --git a/wp-content/themes/twentytwenty/assets/css/editor-style-block.css b/wp-content/themes/twentytwenty/assets/css/editor-style-block.css index 2957482e04..38b7521ad8 100644 --- a/wp-content/themes/twentytwenty/assets/css/editor-style-block.css +++ b/wp-content/themes/twentytwenty/assets/css/editor-style-block.css @@ -876,6 +876,10 @@ hr.wp-block-separator.is-style-dots::before { transform: translateY(-50%); } +.editor-styles-wrapper .wp-block-pullquote[style*="letter-spacing"] p { + letter-spacing: inherit; +} + .editor-styles-wrapper .wp-block-pullquote__citation, .editor-styles-wrapper .wp-block-pullquote cite, .editor-styles-wrapper .wp-block-pullquote footer { diff --git a/wp-content/themes/twentytwenty/style-rtl.css b/wp-content/themes/twentytwenty/style-rtl.css index dc17ce27df..a9a001507d 100644 --- a/wp-content/themes/twentytwenty/style-rtl.css +++ b/wp-content/themes/twentytwenty/style-rtl.css @@ -3295,6 +3295,19 @@ figure.wp-block-gallery.alignfull { margin-left: 0; } +.wp-block-pullquote[class*="-font-size"] p, +.wp-block-pullquote[style*="font-size"] p { + font-size: inherit; +} + +.wp-block-pullquote[style*="font-weight"] p { + font-weight: inherit; +} + +.wp-block-pullquote[style*="letter-spacing"] p { + letter-spacing: inherit; +} + /* STYLE: SOLID BACKGROUND COLOR */ .wp-block-pullquote.is-style-solid-color { diff --git a/wp-content/themes/twentytwenty/style.css b/wp-content/themes/twentytwenty/style.css index 3ee6dbc431..d3d8b5a7df 100644 --- a/wp-content/themes/twentytwenty/style.css +++ b/wp-content/themes/twentytwenty/style.css @@ -3315,6 +3315,19 @@ figure.wp-block-gallery.alignfull { margin-right: 0; } +.wp-block-pullquote[class*="-font-size"] p, +.wp-block-pullquote[style*="font-size"] p { + font-size: inherit; +} + +.wp-block-pullquote[style*="font-weight"] p { + font-weight: inherit; +} + +.wp-block-pullquote[style*="letter-spacing"] p { + letter-spacing: inherit; +} + /* STYLE: SOLID BACKGROUND COLOR */ .wp-block-pullquote.is-style-solid-color { diff --git a/wp-includes/version.php b/wp-includes/version.php index 333df06603..c1c0ce6be7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58907'; +$wp_version = '6.7-alpha-58908'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.