From bb21c738ee2dbab019e8f4b97922c702a793c0b9 Mon Sep 17 00:00:00 2001 From: ryelle Date: Tue, 8 Jun 2021 17:21:59 +0000 Subject: [PATCH] Twenty Nineteen: Set a default color for button links in the editor. Props mikejolley, poena, boniu91. Fixes #52555. Built from https://develop.svn.wordpress.org/trunk@51098 git-svn-id: http://core.svn.wordpress.org/trunk@50707 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentynineteen/style-editor.css | 4 ++++ wp-content/themes/twentynineteen/style-editor.scss | 4 ++++ wp-includes/version.php | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentynineteen/style-editor.css b/wp-content/themes/twentynineteen/style-editor.css index a4d9491412..274e2851c2 100644 --- a/wp-content/themes/twentynineteen/style-editor.css +++ b/wp-content/themes/twentynineteen/style-editor.css @@ -1000,6 +1000,10 @@ figcaption, font-weight: bold; } +.wp-block-button .wp-block-button__link:not(.has-text-color) { + color: #fff; +} + .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: #0073aa; } diff --git a/wp-content/themes/twentynineteen/style-editor.scss b/wp-content/themes/twentynineteen/style-editor.scss index 875b5cf166..07c352035d 100644 --- a/wp-content/themes/twentynineteen/style-editor.scss +++ b/wp-content/themes/twentynineteen/style-editor.scss @@ -373,6 +373,10 @@ figcaption, @include font-family( $font__heading ); font-size: $font__size-sm; font-weight: bold; + + &:not(.has-text-color) { + color: #fff; + } } &:not(.is-style-outline) .wp-block-button__link { diff --git a/wp-includes/version.php b/wp-includes/version.php index 08bd008cab..b04cdba0ee 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-51097'; +$wp_version = '5.8-alpha-51098'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.