Opened 6 weeks ago
Last modified 5 weeks ago
#66180 accepted defect (bug)
Twenty Twenty-Five: Update input field border color
| Reported by: | joedolson | Owned by: | joedolson |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.2 |
| Component: | Bundled Theme | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | accessibility |
Description (last modified by )
Part of the process to meet the updated accessibility-ready requirements.
Adjust the border color for search & input fields to accent-4, which is #686868, and meets contrast guidelines.
Attachments (2)
Change History (8)
This ticket was mentioned in PR #13724 on WordPress/wordpress-develop by @joedolson.
6 weeks ago
#1
- Keywords has-patch added
#3
@
5 weeks ago
Patch Testing Report
Patch tested: https://github.com/WordPress/wordpress-develop/pull/13724
Environment
- WordPress: 7.1.2 (before) / trunk with PR #13724 (after), both in WordPress Playground
- Browser: Google Chrome 153.0.8010.52
- OS: Linux
- Theme: Twenty Twenty-Five
- MU Plugins: None
- Plugins: None
Steps taken
- Created a page with a Search block and opened it on the front end.
- Opened the "Hello world!" post and scrolled to the comment form (logged in, so the Comment textarea is shown).
- Checked the border colour of the search input and the comment textarea, and its contrast against the white background.
- Repeated the same steps with the patch applied.
- ✅ Patch is solving the problem.
Results
- Before the patch: the search input and the comment textarea used accent-6 (rgba(0, 0, 0, 0.2), shown as #cccccc on white). Contrast against the background: 1.61:1, below the 3:1 needed for non-text contrast.
- With the patch: both use accent-4 (#686868). Contrast against the background: 5.57:1, which meets 3:1.
- The border radius and padding of the fields did not change.
Expected result
The borders of the search input and the comment form fields use accent-4 (#686868) and meet the 3:1 non-text contrast requirement.
Screenshots/Screencast with results
@sabernhardt commented on PR #13724:
5 weeks ago
#4
Replacing Accent 6 would increase contrast in almost all of the style variations (Twilight's border is white with either Accent 6 or Accent 4, matching the input background).
*Except for Default and Dusk styles, Accent 4 matches the body text color, which is used for labels. (Default's body text is #111111 and Dusk has #3B3B3B.)
The screenshots are taken in Firefox 156/Windows 11, which sets the background for all of the inputs to white. The browser's border color for any text input outside the Search or Comments Form blocks is rgb(143, 143, 157).
#5
@
5 weeks ago
| Style | Body background | Accent 6 (current border color) | Accent 6 contrast against body | Accent 6 against white input | Accent 4 | Accent 4 contrast against body | Accent 4 against white input |
|---|---|---|---|---|---|---|---|
| Default | #FFFFFF | #00000033 | 1.6 | 1.6 | #686868 | 5.57 | 5.57 |
| Evening | #1B1B1B | #FFFFFF33 | 1.9 | 1 | #CBCBCB | 10.61 | 1.62 |
| Noon | #F8F7F5 | #19191933 | 1.52 | 1.52 | #5F5F5F | 5.96 | 6.38 |
| Dusk | #E2E2E2 | #3B3B3B33 | 1.39 | 1.42 | #5F5F5F | 4.92 | 6.38 |
| Afternoon | #DAE7BD | #51602833 | 1.3 | 1.34 | #516028 | 5.28 | 6.87 |
| Twilight | #131313 | #FFFFFF33 | 1.85 | 1 | #FFFFFF | 18.58 | 1 |
| Morning | #DFDCD7 | #19191933 | 1.49 | 1.52 | #5F5F5F | 4.66 | 6.38 |
| Sunrise | #330616 | #DB9AB133 | 1.42 | 1.16 | #DB9AB1 | 7.86 | 2.26 |
| Midnight | #4433A6 | #79F3B133 | 1.47 | 1.07 | #79F3B1 | 6.72 | 1.37 |
(The 33 at the end of Accent 6 colors is 20% opacity; an earlier name for the preset was opacity-20.)
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)


Trac ticket: https://core.trac.wordpress.org/ticket/66180
Use of AI Tools