From e8d4e053337d76f747c63db76dae8cab13f95e9d Mon Sep 17 00:00:00 2001 From: audrasjb Date: Mon, 26 Jun 2023 15:50:23 +0000 Subject: [PATCH] Twenty Nineteen: Ensure Separator block supports theme colors in editor. This fixes a bug in the Editor, where the Separator block did not support background color selections other than white and light gray. Props nidhidhandhukiya, sabernhardt, shailu25, harshgajipara, mukesh27, costdev, zunaid321. Fixes #58558. Built from https://develop.svn.wordpress.org/trunk@56036 git-svn-id: http://core.svn.wordpress.org/trunk@55548 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../themes/twentynineteen/style-editor.css | 25 +++++++++++++++++++ .../themes/twentynineteen/style-editor.scss | 25 +++++++++++++++++++ wp-includes/version.php | 2 +- 3 files changed, 51 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentynineteen/style-editor.css b/wp-content/themes/twentynineteen/style-editor.css index 1e0bd69390..3a4ce4a6e6 100644 --- a/wp-content/themes/twentynineteen/style-editor.css +++ b/wp-content/themes/twentynineteen/style-editor.css @@ -1276,6 +1276,31 @@ figcaption, padding-left: calc(2 * 1rem); } +.wp-block-separator.has-primary-background-color { + color: #0073aa; + background-color: #0073aa; +} + +.wp-block-separator.has-secondary-background-color { + color: #005177; + background-color: #005177; +} + +.wp-block-separator.has-dark-gray-background-color { + color: #111; + background-color: #111; +} + +.wp-block-separator.has-light-gray-background-color { + color: #767676; + background-color: #767676; +} + +.wp-block-separator.has-white-background-color { + color: #fff; + background-color: #fff; +} + /* Remove duplicate rule-line when a separator * is followed by an H1, or H2 */ .wp-block[data-type="core/separator"] + .wp-block[data-type="core/heading"] h1:before, diff --git a/wp-content/themes/twentynineteen/style-editor.scss b/wp-content/themes/twentynineteen/style-editor.scss index 8359aacacb..7b0df5f0af 100644 --- a/wp-content/themes/twentynineteen/style-editor.scss +++ b/wp-content/themes/twentynineteen/style-editor.scss @@ -651,6 +651,31 @@ figcaption, letter-spacing: calc(2 * #{$size__spacing-unit}); padding-left: calc(2 * #{$size__spacing-unit}); } + + &.has-primary-background-color { + color: $color__link; + background-color: $color__link; + } + + &.has-secondary-background-color { + color: $color__border-link-hover; + background-color: $color__border-link-hover; + } + + &.has-dark-gray-background-color { + color: $color__text-main; + background-color: $color__text-main; + } + + &.has-light-gray-background-color { + color: $color__text-light; + background-color: $color__text-light; + } + + &.has-white-background-color { + color: #fff; + background-color: #fff; + } } /* Remove duplicate rule-line when a separator diff --git a/wp-includes/version.php b/wp-includes/version.php index 24deb0dbae..86bedf2c06 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-56035'; +$wp_version = '6.3-alpha-56036'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.