From 31b1f8dfa45356a4878847d3e747eb5f627ef780 Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Mon, 15 Jul 2024 18:12:12 +0000 Subject: [PATCH] Twenty Sixteen: Fixes button block letter spacing control. The button block had issues with font styling not applying. This not only brings letter-spacing but also line-height, text-transform and font-weight to wp-button-block-buttons. [57300] fixed the separator issue. This fix also added box-shadow none for consistency. Props darshitrajyaguru97, harshgajipara, shailu25, sabernhardt, alvitazwar052. Fixes #58609. Built from https://develop.svn.wordpress.org/trunk@58725 git-svn-id: http://core.svn.wordpress.org/trunk@58127 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentysixteen/css/blocks.css | 12 +++++------- .../themes/twentysixteen/css/editor-blocks.css | 11 +++++------ wp-includes/version.php | 2 +- 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/wp-content/themes/twentysixteen/css/blocks.css b/wp-content/themes/twentysixteen/css/blocks.css index 9ce7a295de..f01118d6c0 100644 --- a/wp-content/themes/twentysixteen/css/blocks.css +++ b/wp-content/themes/twentysixteen/css/blocks.css @@ -250,19 +250,17 @@ p.has-drop-cap:not(:focus)::first-letter { /* Buttons */ -.wp-block-button .wp-block-button__link { - box-shadow: none; - font-family: Montserrat, "Helvetica Neue", sans-serif; +.wp-block-buttons { font-weight: 700; letter-spacing: 0.046875em; line-height: 1; - padding: 0.84375em 1.3125em 0.78125em; 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; +.wp-block-button .wp-block-button__link { + box-shadow: none; + font-family: Montserrat, "Helvetica Neue", sans-serif; + padding: 0.84375em 1.3125em 0.78125em; } .wp-block-button__link { diff --git a/wp-content/themes/twentysixteen/css/editor-blocks.css b/wp-content/themes/twentysixteen/css/editor-blocks.css index aeae27404e..3e2ec41017 100644 --- a/wp-content/themes/twentysixteen/css/editor-blocks.css +++ b/wp-content/themes/twentysixteen/css/editor-blocks.css @@ -560,18 +560,17 @@ figure[class*="wp-block-"] > figcaption { /* Buttons */ -.wp-block-button .wp-block-button__link { - font-family: Montserrat, "Helvetica Neue", sans-serif; +.wp-block-buttons { font-weight: 700; letter-spacing: 0.046875em; line-height: 1; - padding: 0.84375em 1.3125em 0.78125em; 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; +.wp-block-button .wp-block-button__link { + box-shadow: none; + font-family: Montserrat, "Helvetica Neue", sans-serif; + padding: 0.84375em 1.3125em 0.78125em; } .wp-block-button__link { diff --git a/wp-includes/version.php b/wp-includes/version.php index 4a685a1a00..dc386a3fe3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58724'; +$wp_version = '6.7-alpha-58725'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.