From dd37acabeae4ec80d66031b6f21d3c147743de57 Mon Sep 17 00:00:00 2001 From: laurelfulford Date: Fri, 28 Dec 2018 20:15:49 +0000 Subject: [PATCH] Twenty Nineteen: Fix hover appearance for outlined button block style. The outlined button block style was displaying white text on a white background on hover. This update makes sure the text remains legible on hover when this button style is applied. Props rickalee, kjellr. Fixes #45726. Built from https://develop.svn.wordpress.org/trunk@44370 git-svn-id: http://core.svn.wordpress.org/trunk@44200 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentynineteen/sass/blocks/_blocks.scss | 3 +++ wp-content/themes/twentynineteen/style-rtl.css | 4 ++++ wp-content/themes/twentynineteen/style.css | 4 ++++ wp-includes/version.php | 2 +- 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss b/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss index 395375a17b..72822b1263 100644 --- a/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss +++ b/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss @@ -215,6 +215,9 @@ &.is-style-outline .wp-block-button__link:hover { color: white; border-color: $color__background-button-hover; + &:not(.has-background) { + color: $color__background-button-hover; + } } } diff --git a/wp-content/themes/twentynineteen/style-rtl.css b/wp-content/themes/twentynineteen/style-rtl.css index 9cf3d84360..c5ca35cdd5 100644 --- a/wp-content/themes/twentynineteen/style-rtl.css +++ b/wp-content/themes/twentynineteen/style-rtl.css @@ -3664,6 +3664,10 @@ body.page .main-navigation { border-color: #111; } +.entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover:not(.has-background) { + color: #111; +} + .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 ae1dc49e98..6d593e38f1 100644 --- a/wp-content/themes/twentynineteen/style.css +++ b/wp-content/themes/twentynineteen/style.css @@ -3676,6 +3676,10 @@ body.page .main-navigation { border-color: #111; } +.entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover:not(.has-background) { + color: #111; +} + .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 553d011846..5d73be06ab 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-alpha-44369'; +$wp_version = '5.1-alpha-44370'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.