[wp-trac] [WordPress Trac] #63531: Category dropdown does not meet WCAG 2.2 A on windows and some linux systems
WordPress Trac
noreply at wordpress.org
Thu Oct 16 14:07:36 UTC 2025
#63531: Category dropdown does not meet WCAG 2.2 A on windows and some linux
systems
----------------------------------+----------------------------------------
Reporter: adrock42 | Owner: joedolson
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.9
Component: Widgets | Version:
Severity: normal | Resolution:
Keywords: has-patch has-test- | Focuses: accessibility, javascript
info |
----------------------------------+----------------------------------------
Changes (by nikunj8866):
* keywords: has-patch has-test-info needs-testing => has-patch has-test-
info
Comment:
== Test Report
✅ This report validates that the indicated patch works as expected.
Patch tested: https://github.com/WordPress/wordpress-develop/pull/9810
=== Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.28
- Server: nginx/1.29.0
- Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
- Browser: Chrome 141.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty-One 2.6
- MU Plugins: None activated
- Plugins:
* Test Reports 1.2.0
* Classic Widgets 0.3
=== Steps to Reproduce
1. Create several post categories and assign them to posts.
2. Install and activate the **Classic Widgets plugin**
(https://wordpress.org/plugins/classic-widgets/).
3. Add a **Categories widget** to a sidebar or another widget area, and
enable the Display as dropdown option.(https://prnt.sc/M00ewMxnhx-S)
4. On the frontend, **focus** on the Categories dropdown using **Tab** or
mouse click.
5. Use the **Arrow Down key** to highlight another category in the list.
6. 🐞 Press **Esc (Escape)** to close the dropdown.
=== Before Patch
- Pressing **Esc (Escape)** caused the browser to navigate to the selected
category archive page instead of closing the dropdown.
=== Expected Results
- Pressing **Esc (Escape)** should close the dropdown without triggering
navigation to category archive page.
- The previously selected value should remain unchanged.
=== Actual Results
- ✅ With the patch applied, pressing **Esc (Escape)** closes the dropdown
correctly without redirection.
- Navigation now occurs only when the user confirms a selection (e.g., by
pressing **Enter** or using a **mouse click**).
=== Supplemental Artifacts
Before Patch: https://screenrec.com/share/OszYSTlP8W
After Patch: https://screenrec.com/share/bezgktxXZI
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63531#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list