[wp-trac] [WordPress Trac] #30083: Twenty Fifteen: Sub Menu Navigation Toggles are Invalid HTML

WordPress Trac noreply at wordpress.org
Thu Oct 23 16:57:55 UTC 2014


#30083: Twenty Fifteen: Sub Menu Navigation Toggles are Invalid HTML
---------------------------+----------------------------
 Reporter:  davidakennedy  |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  4.1
Component:  Bundled Theme  |     Version:  trunk
 Severity:  blocker        |  Resolution:
 Keywords:                 |     Focuses:  accessibility
---------------------------+----------------------------

Comment (by afercia):

 Hi, what about to insert the `<button>` as a sibling of the `<a>` element?
 Example patch attached, might need some CSS adjustment.

 Worth noting that currently there's one more issue: tested with Firefox +
 NVDA, the button will be announced as part of a link, which make sense
 given the current structure but may be confusing for screen reader users:
 "it's a button or a link?"

 Currently NVDA announces:

 EXPAND
 button  collapsed
 link

 COLLAPSE
 button  expanded
 link

 after the patch:

 EXPAND
 button  collapsed

 COLLAPSE
 button  expanded

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


More information about the wp-trac mailing list