From 3a2e2cd4503a22ca189c0fff6f63e07c2e819192 Mon Sep 17 00:00:00 2001 From: Kelly Choyce-Dwan Date: Tue, 8 Jun 2021 17:20:19 +0000 Subject: [PATCH] Twenty Nineteen: Set a default color for button links in the editor. Props mikejolley, poena, boniu91. Fixes #52555. git-svn-id: https://develop.svn.wordpress.org/trunk@51098 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentynineteen/style-editor.css | 4 ++++ src/wp-content/themes/twentynineteen/style-editor.scss | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/wp-content/themes/twentynineteen/style-editor.css b/src/wp-content/themes/twentynineteen/style-editor.css index a4d9491412..274e2851c2 100644 --- a/src/wp-content/themes/twentynineteen/style-editor.css +++ b/src/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/src/wp-content/themes/twentynineteen/style-editor.scss b/src/wp-content/themes/twentynineteen/style-editor.scss index 875b5cf166..07c352035d 100644 --- a/src/wp-content/themes/twentynineteen/style-editor.scss +++ b/src/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 {