[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
Sat Sep 20 15:40:50 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-info  |     Focuses:  accessibility,
  needs-testing                      |  javascript
-------------------------------------+-------------------------------------
Changes (by joedolson):

 * keywords:  has-patch => has-patch has-test-info needs-testing


Comment:

 Because the key pressed isn't available in the `change` event, this
 updates the code to add an additional eventlistener on keypress that
 records whether the `esc` key was pressed and prevents the change event if
 it was.

 This will also need to be updated in Gutenberg in
 https://github.com/WordPress/gutenberg/blob/24b48886eec82287eef3e7b31f2122933f1ad038/packages
 /block-library/src/categories/index.php#L100

 Issue opened: https://github.com/WordPress/gutenberg/issues/71788

 Test instructions are in the original ticket raised.

 After the patch, clicking `esc` should *not* cause the page to navigate.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63531#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list