From f512feabe02199c041788a4f30c3d91b78c8d833 Mon Sep 17 00:00:00 2001 From: ryelle Date: Tue, 8 Jun 2021 15:06:58 +0000 Subject: [PATCH] Twenty Twenty: Ensure custom primary color is applied to text in the editor. Update the specificity of the custom CSS to match the editor styles. This overrides the default primary color with the selected custom color, matching the frontend display. Props sabernhardt, notlaura. Fixes #50120. Built from https://develop.svn.wordpress.org/trunk@51095 git-svn-id: http://core.svn.wordpress.org/trunk@50704 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../themes/twentytwenty/assets/css/editor-style-block.css | 2 +- wp-content/themes/twentytwenty/inc/custom-css.php | 2 +- wp-includes/version.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-content/themes/twentytwenty/assets/css/editor-style-block.css b/wp-content/themes/twentytwenty/assets/css/editor-style-block.css index 66e662628e..86c63577b2 100644 --- a/wp-content/themes/twentytwenty/assets/css/editor-style-block.css +++ b/wp-content/themes/twentytwenty/assets/css/editor-style-block.css @@ -224,7 +224,7 @@ Inter variable font. Usage: /* Typography -------------------------------- */ -.editor-styles-wrapper .editor-block-list__layout a { +.editor-styles-wrapper a { color: #cd2653; text-decoration: underline; } diff --git a/wp-content/themes/twentytwenty/inc/custom-css.php b/wp-content/themes/twentytwenty/inc/custom-css.php index 7c40de2eaa..0bd00607e1 100644 --- a/wp-content/themes/twentytwenty/inc/custom-css.php +++ b/wp-content/themes/twentytwenty/inc/custom-css.php @@ -122,7 +122,7 @@ if ( ! function_exists( 'twentytwenty_get_customizer_css' ) ) { // Colors. // Accent color. if ( $accent && $accent !== $accent_default ) { - twentytwenty_generate_css( '.has-accent-color, .editor-styles-wrapper .editor-block-list__layout a, .editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter, .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link, .editor-styles-wrapper .wp-block-pullquote::before, .editor-styles-wrapper .wp-block-file .wp-block-file__textlink', 'color', $accent ); + twentytwenty_generate_css( ':root .has-accent-color, .editor-styles-wrapper a, .editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter, .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link, .editor-styles-wrapper .wp-block-pullquote::before, .editor-styles-wrapper .wp-block-file .wp-block-file__textlink', 'color', $accent ); twentytwenty_generate_css( '.editor-styles-wrapper .wp-block-quote', 'border-color', $accent, '' ); twentytwenty_generate_css( '.has-accent-background-color, .editor-styles-wrapper .wp-block-button__link, .editor-styles-wrapper .wp-block-file__button', 'background-color', $accent ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 8f33ada110..f5dec4b6a9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-51094'; +$wp_version = '5.8-alpha-51095'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.