Commit 2dbeb626f9 for wordpress.org
commit 2dbeb626f9bb7374b585521f8f06d347a053e7b1
Author: joedolson <joedolson@git.wordpress.org>
Date: Sun Nov 8 16:42:59 2026 +0000
Twenty Twenty Four: Adjust text input border colors for a11y.
Shift the colors used for text input borders so they meet the WCAG 3:1 contrast ratios in all theme variations.
Developed in https://github.com/WordPress/wordpress-develop/pull/15349.
Props joedolson, sabernhardt, raiyanmarzan, denisej25.
Fixes #66190.
Built from https://develop.svn.wordpress.org/trunk@65337
git-svn-id: http://core.svn.wordpress.org/trunk@64477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-content/themes/twentytwentyfour/styles/maelstrom.json b/wp-content/themes/twentytwentyfour/styles/maelstrom.json
index fe92140544..d87b506a94 100644
--- a/wp-content/themes/twentytwentyfour/styles/maelstrom.json
+++ b/wp-content/themes/twentytwentyfour/styles/maelstrom.json
@@ -32,6 +32,9 @@
}
]
},
+ "custom": {
+ "inputBorderColor": "var(--wp--preset--color--contrast-3)"
+ },
"typography": {
"fontFamilies": [
{
diff --git a/wp-content/themes/twentytwentyfour/theme.json b/wp-content/themes/twentytwentyfour/theme.json
index 134da2894e..98e761f605 100644
--- a/wp-content/themes/twentytwentyfour/theme.json
+++ b/wp-content/themes/twentytwentyfour/theme.json
@@ -153,6 +153,9 @@
}
]
},
+ "custom": {
+ "inputBorderColor": "#757575"
+ },
"layout": {
"contentSize": "620px",
"wideSize": "1280px"
@@ -520,7 +523,7 @@
}
},
"core/loginout": {
- "css": "& input{border-radius:.33rem;padding:calc(0.667em + 2px);border:1px solid #949494;}"
+ "css": "& input{border-radius:.33rem;padding:calc(0.667em + 2px);border:1px solid var(--wp--custom--input-border-color);}"
},
"core/navigation": {
"elements": {
@@ -724,7 +727,7 @@
}
},
"core/search": {
- "css": "& .wp-block-search__input{border-radius:.33rem}",
+ "css": "& .wp-block-search__input{border-radius:.33rem}&.wp-block-search__button-inside .wp-block-search__inside-wrapper{border-color:var(--wp--custom--input-border-color)}",
"typography": {
"fontSize": "var(--wp--preset--font-size--small)"
},
@@ -891,6 +894,11 @@
"color": {
"text": "var(--wp--preset--color--contrast)"
}
+ },
+ "textInput": {
+ "border": {
+ "color": "var(--wp--custom--input-border-color)"
+ }
}
},
"spacing": {
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 2935f9fbd7..16b136fb42 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.2-beta4-65336';
+$wp_version = '7.2-beta4-65337';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.