[wp-trac] [WordPress Trac] #29958: collapse menu keyboard accessibility

WordPress Trac noreply at wordpress.org
Fri Feb 27 18:20:58 UTC 2015


#29958: collapse menu keyboard accessibility
-------------------------------------+-------------------------------------
 Reporter:  afercia                  |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  4.2
Component:  Administration           |     Version:  4.0
 Severity:  normal                   |  Resolution:
 Keywords:  needs-testing needs-     |     Focuses:  ui, accessibility,
  patch                              |  administration
-------------------------------------+-------------------------------------

Comment (by afercia):

 Latest patch doesn't remove the title attribute and doesn't use screen-
 reader-text for screen reader users. Also, when collapsed. screen readers
 will still read out 'Collapse menu'. Also, looks like it's a
 "differential" patch :) as far as I see, it applies "on top" of
 29958.2.patch

 > Thre is no CSS overload as the patch makes use of the generic dashicons
 and menu styles
 As said, we need a button not a link. Using a button, we can't fully take
 advantage of the existing menu styles but we have to use something more
 specific for the button.

 I would recommend to stick with the second patch approach, refreshed and
 cleaned up a bit in 29958.4.patch

 Side note: couldn't find a way to use `aria-expanded` on the button (which
 would be ideal): couldn't figure out a simple way to detect via JavaScript
 when the CSS media query kicks in.

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


More information about the wp-trac mailing list