From 56ce2e58def5f8ed53c7553d27b21b2707569712 Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Sun, 26 May 2024 08:49:09 +0000 Subject: [PATCH] Twenty Nineteen: Resolves button block font issues. The font on buttons was displaying less than the font size when applied through the editor. This resets the relative measurement on wp-block-button__link when either its Buttons or Button block has a custom size. Props nidhidhandhukiya, sabernhardt, SergeyBiryukov, manojmaharrshi, darshitrajyaguru97, shailu25. Fixes #56443. Built from https://develop.svn.wordpress.org/trunk@58199 git-svn-id: http://core.svn.wordpress.org/trunk@57662 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentynineteen/sass/blocks/_blocks.scss | 8 ++++++++ wp-content/themes/twentynineteen/style-rtl.css | 5 +++++ wp-content/themes/twentynineteen/style.css | 5 +++++ wp-includes/version.php | 2 +- 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss b/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss index 8b82a5c014..65acd0f19c 100644 --- a/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss +++ b/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss @@ -239,6 +239,14 @@ } } + .wp-block-buttons, + .wp-block-button { + + &.has-custom-font-size .wp-block-button__link { + font-size: 1em; + } + } + //! Latest posts, categories, archives .wp-block-archives, .wp-block-categories, diff --git a/wp-content/themes/twentynineteen/style-rtl.css b/wp-content/themes/twentynineteen/style-rtl.css index 6830dfa7f1..411998ad60 100644 --- a/wp-content/themes/twentynineteen/style-rtl.css +++ b/wp-content/themes/twentynineteen/style-rtl.css @@ -5563,6 +5563,11 @@ body.page .main-navigation { color: #111; } +.entry .entry-content .wp-block-buttons.has-custom-font-size .wp-block-button__link, +.entry .entry-content .wp-block-button.has-custom-font-size .wp-block-button__link { + font-size: 1em; +} + .entry .entry-content .wp-block-archives, .entry .entry-content .wp-block-categories, .entry .entry-content .wp-block-latest-posts { diff --git a/wp-content/themes/twentynineteen/style.css b/wp-content/themes/twentynineteen/style.css index 62ae6048b4..89e7299d26 100644 --- a/wp-content/themes/twentynineteen/style.css +++ b/wp-content/themes/twentynineteen/style.css @@ -5575,6 +5575,11 @@ body.page .main-navigation { color: #111; } +.entry .entry-content .wp-block-buttons.has-custom-font-size .wp-block-button__link, +.entry .entry-content .wp-block-button.has-custom-font-size .wp-block-button__link { + font-size: 1em; +} + .entry .entry-content .wp-block-archives, .entry .entry-content .wp-block-categories, .entry .entry-content .wp-block-latest-posts { diff --git a/wp-includes/version.php b/wp-includes/version.php index e412c86c7d..21901dca0b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-58198'; +$wp_version = '6.6-alpha-58199'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.