Commit 6d7b8f738f for wordpress.org

commit 6d7b8f738fd3f4297293a84adfe598c75b8af261
Author: wildworks <wildworks@git.wordpress.org>
Date:   Thu Nov 26 14:25:25 2026 +0000

    Twenty Twenty-One: Keep button text visible on custom backgrounds.

    Buttons in the Search, File, and Button blocks, and plain buttons, now keep readable text when placed inside a block with a custom background color.

    Developed in: https://github.com/WordPress/wordpress-develop/pull/13707

    Follow-up to [49987].

    Props dhruvang21, rishabhwp, sabernhardt, sourav08, wildworks.
    Fixes #63245.
    Built from https://develop.svn.wordpress.org/trunk@65801


    git-svn-id: http://core.svn.wordpress.org/trunk@64830 1a063a9b-81f0-0310-95a4-ce76da25c4cd

diff --git a/wp-content/themes/twentytwentyone/assets/css/style-editor.css b/wp-content/themes/twentytwentyone/assets/css/style-editor.css
index df21ab67bb..99d4164572 100644
--- a/wp-content/themes/twentytwentyone/assets/css/style-editor.css
+++ b/wp-content/themes/twentytwentyone/assets/css/style-editor.css
@@ -542,7 +542,7 @@ a:hover {
 }

 .has-background .wp-block-button__link:not(:hover):not(:active):not(.has-text-color) {
-	color: var(--local--color-background, var(--global--color-primary));
+	color: var(--local--color-background, var(--global--color-background));
 }

 .has-background .wp-block-button__link:not(:hover):not(:active):not(.has-text-color).has-background {
@@ -885,7 +885,7 @@ a:hover {
 }

 .has-background .wp-block-file .wp-block-file__button:not(:hover):not(:active):not(.has-text-color) {
-	color: var(--local--color-background, var(--global--color-primary));
+	color: var(--local--color-background, var(--global--color-background));
 }

 .has-background .wp-block-file .wp-block-file__button:not(:hover):not(:active):not(.has-text-color).has-background {
@@ -1890,7 +1890,7 @@ pre.wp-block-preformatted {
 }

 .has-background .wp-block-search .wp-block-search__button.wp-block-search__button:not(:hover):not(:active):not(.has-text-color) {
-	color: var(--local--color-background, var(--global--color-primary));
+	color: var(--local--color-background, var(--global--color-background));
 }

 .has-background .wp-block-search .wp-block-search__button.wp-block-search__button:not(:hover):not(:active):not(.has-text-color).has-background {
diff --git a/wp-content/themes/twentytwentyone/assets/sass/02-tools/mixins.scss b/wp-content/themes/twentytwentyone/assets/sass/02-tools/mixins.scss
index 475baf5db0..c3cb5bcaf1 100644
--- a/wp-content/themes/twentytwentyone/assets/sass/02-tools/mixins.scss
+++ b/wp-content/themes/twentytwentyone/assets/sass/02-tools/mixins.scss
@@ -39,7 +39,7 @@

 			// Nested
 			.has-background & {
-				color: var(--local--color-background, var(--global--color-primary));
+				color: var(--local--color-background, var(--global--color-background));

 				&.has-background {
 					color: var(--global--color-primary);
diff --git a/wp-content/themes/twentytwentyone/style-rtl.css b/wp-content/themes/twentytwentyone/style-rtl.css
index 1dcbb2abb8..60276ebc7b 100644
--- a/wp-content/themes/twentytwentyone/style-rtl.css
+++ b/wp-content/themes/twentytwentyone/style-rtl.css
@@ -1673,7 +1673,7 @@ input[type=reset]:not(:hover):not(:active):not(.has-text-color),
 .has-background .wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-text-color),
 .has-background .wp-block-button .wp-block-button__link:not(:hover):not(:active):not(.has-text-color),
 .has-background .wp-block-file a.wp-block-file__button:not(:hover):not(:active):not(.has-text-color) {
-	color: var(--local--color-background, var(--global--color-primary));
+	color: var(--local--color-background, var(--global--color-background));
 }

 .has-background .site .button:not(:hover):not(:active):not(.has-text-color).has-background,
diff --git a/wp-content/themes/twentytwentyone/style.css b/wp-content/themes/twentytwentyone/style.css
index 15761c8950..6fd50f2537 100644
--- a/wp-content/themes/twentytwentyone/style.css
+++ b/wp-content/themes/twentytwentyone/style.css
@@ -1683,7 +1683,7 @@ input[type=reset]:not(:hover):not(:active):not(.has-text-color),
 .has-background .wp-block-search .wp-block-search__button:not(:hover):not(:active):not(.has-text-color),
 .has-background .wp-block-button .wp-block-button__link:not(:hover):not(:active):not(.has-text-color),
 .has-background .wp-block-file a.wp-block-file__button:not(:hover):not(:active):not(.has-text-color) {
-	color: var(--local--color-background, var(--global--color-primary));
+	color: var(--local--color-background, var(--global--color-background));
 }

 .has-background .site .button:not(:hover):not(:active):not(.has-text-color).has-background,
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 911fc87e42..8650405dc5 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '7.3-alpha-65800';
+$wp_version = '7.3-alpha-65801';

 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.