From 170d435c0b9dcebd50f50358cea2d7c4aec7c392 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Mon, 13 Feb 2023 09:23:19 +0000 Subject: [PATCH] Twenty Twelve: Properly reflect text color changes in Table block. This changeset makes the table header cells also inherit text colors, when the user selects a text color. Props nidhidhandhukiya, sabernhardt, poena, faguni22. Fixes #56466. Built from https://develop.svn.wordpress.org/trunk@55312 git-svn-id: http://core.svn.wordpress.org/trunk@54845 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwelve/css/blocks.css | 4 ++++ wp-content/themes/twentytwelve/css/editor-blocks.css | 4 ++++ wp-content/themes/twentytwelve/editor-style.css | 2 +- wp-includes/version.php | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/twentytwelve/css/blocks.css b/wp-content/themes/twentytwelve/css/blocks.css index a88ffcbfe1..d69ef621c6 100644 --- a/wp-content/themes/twentytwelve/css/blocks.css +++ b/wp-content/themes/twentytwelve/css/blocks.css @@ -232,6 +232,10 @@ pre.wp-block-code { text-transform: uppercase; } +.has-text-color th { + color: inherit; +} + .wp-block-table td { border: 0; border-top: 1px solid #ededed; diff --git a/wp-content/themes/twentytwelve/css/editor-blocks.css b/wp-content/themes/twentytwelve/css/editor-blocks.css index 29eb1f7ede..39a4d87af4 100644 --- a/wp-content/themes/twentytwelve/css/editor-blocks.css +++ b/wp-content/themes/twentytwelve/css/editor-blocks.css @@ -311,6 +311,10 @@ p.has-drop-cap:not(:focus)::first-letter { width: 100%; } +.editor-styles-wrapper .has-text-color th { + color: inherit; +} + .editor-block-list__block .wp-block-table th { border: 0; font-size: 11px; diff --git a/wp-content/themes/twentytwelve/editor-style.css b/wp-content/themes/twentytwelve/editor-style.css index 24e9b24f63..d3934a9151 100644 --- a/wp-content/themes/twentytwelve/editor-style.css +++ b/wp-content/themes/twentytwelve/editor-style.css @@ -278,7 +278,7 @@ tr th { } td { border-top: 1px solid #ededed !important; - color: #757575; + color: inherit; font-size: inherit; font-weight: normal; padding: 6px 10px 6px 0; diff --git a/wp-includes/version.php b/wp-includes/version.php index a456c3b68f..41b07468eb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-beta1-55311'; +$wp_version = '6.2-beta1-55312'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.