[wp-trac] [WordPress Trac] #34668: Network admin can't be accessed via keyboard

WordPress Trac noreply at wordpress.org
Sat Nov 6 02:18:49 UTC 2021


#34668: Network admin can't be accessed via keyboard
-------------------------------------+-------------------------------------
 Reporter:  abletec                  |       Owner:  sabernhardt
     Type:  defect (bug)             |      Status:  accepted
 Priority:  normal                   |   Milestone:  5.9
Component:  Toolbar                  |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch 2nd-opinion    |     Focuses:  accessibility,
  needs-testing                      |  javascript
-------------------------------------+-------------------------------------

Comment (by alexstine):

 @sabernhardt Here's a modification. I think your patch is going in the
 right direction. I tried to make it a little better. I know this should
 not be an ARIA menu, but I ended up making it one. The biggest changes are
 I removed the aria-expanded false from JavaScript and allowed PHP to
 handle that directly. The other change was I allowed all items to have
 menuitem. Finally, I made an adjustment so that when sub menus open, they
 have the menu role and will announce the title of the menu via aria-label.

 This patch is far from perfect, but maybe if the code is half way decent,
 it can be a keeper.

 Can you work on the JavaScript some more? For some reason, if you click on
 About WordPress, the sub menu will only open if the screen reader is in
 focus mode first. Can you bind to the link and throw
 event.preventDefault(); unless Ctrl+Enter or Shift+Enter keys are used?

 Thanks!

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


More information about the wp-trac mailing list