WordPress build repository browser

Changeset 64477


Ignore:
Timestamp:
11/08/2026 04:42:59 PM (25 hours ago)
Author:
joedolson
Message:

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

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwentyfour/styles/maelstrom.json

    r58231 r64477  
    3232                                }
    3333                        ]
     34                },
     35                "custom": {
     36                        "inputBorderColor": "var(--wp--preset--color--contrast-3)"
    3437                },
    3538                "typography": {
  • trunk/wp-content/themes/twentytwentyfour/theme.json

    r57852 r64477  
    154154                        ]
    155155                },
     156                "custom": {
     157                        "inputBorderColor": "#757575"
     158                },
    156159                "layout": {
    157160                        "contentSize": "620px",
    … …  
    521524                        },
    522525                        "core/loginout": {
    523                                 "css": "& input{border-radius:.33rem;padding:calc(0.667em + 2px);border:1px solid #949494;}"
     526                                "css": "& input{border-radius:.33rem;padding:calc(0.667em + 2px);border:1px solid var(--wp--custom--input-border-color);}"
    524527                        },
    525528                        "core/navigation": {
    … …  
    725728                        },
    726729                        "core/search": {
    727                                 "css": "& .wp-block-search__input{border-radius:.33rem}",
     730                                "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)}",
    728731                                "typography": {
    729732                                        "fontSize": "var(--wp--preset--font-size--small)"
    … …  
    892895                                        "text": "var(--wp--preset--color--contrast)"
    893896                                }
     897                        },
     898                        "textInput": {
     899                                "border": {
     900                                        "color": "var(--wp--custom--input-border-color)"
     901                                }
    894902                        }
    895903                },
  • trunk/wp-includes/version.php

    r64476 r64477  
    1717 * @global string $wp_version
    1818 */
    19 $wp_version = '7.2-beta4-65336';
     19$wp_version = '7.2-beta4-65337';
    2020
    2121/**
Note: See TracChangeset for help on using the changeset viewer.