From da76e678309b0e91ff04469e150a71c6e5169e49 Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Wed, 26 Jun 2024 21:07:22 +0000 Subject: [PATCH] Twenty Seventeen: Fixes button block font weight not changing. The button block appearance was not changing when using settings. This resolves that using inherit. Props pranitdugad, sabernhardt, shailu25, hmbashar. Fixes #60937. Built from https://develop.svn.wordpress.org/trunk@58584 git-svn-id: http://core.svn.wordpress.org/trunk@58031 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyseventeen/assets/css/blocks.css | 5 +++++ .../themes/twentyseventeen/assets/css/editor-blocks.css | 5 +++++ wp-includes/version.php | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentyseventeen/assets/css/blocks.css b/wp-content/themes/twentyseventeen/assets/css/blocks.css index 4ba4e6c532..b3b077f587 100644 --- a/wp-content/themes/twentyseventeen/assets/css/blocks.css +++ b/wp-content/themes/twentyseventeen/assets/css/blocks.css @@ -202,6 +202,11 @@ p.has-drop-cap:not(:focus)::first-letter { text-align: center; } +.wp-block-buttons[style*="font-weight"] .wp-block-button__link, +.wp-block-button[style*="font-weight"] .wp-block-button__link { + font-weight: inherit; +} + /*-------------------------------------------------------------- 4.0 Blocks - Layout Elements --------------------------------------------------------------*/ diff --git a/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css b/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css index 8bb2ae62a4..6c17ad2960 100644 --- a/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css +++ b/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css @@ -715,6 +715,11 @@ table.wp-block-table td:last-child { text-align: center; } +.wp-block-buttons[style*="font-weight"] .wp-block-button__link, +.wp-block-button[style*="font-weight"] .wp-block-button__link { + font-weight: inherit; +} + /* Verse */ .editor-styles-wrapper .wp-block-verse { diff --git a/wp-includes/version.php b/wp-includes/version.php index a05f9f87a1..3cedcf7fa9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58583'; +$wp_version = '6.7-alpha-58584'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.