[wp-trac] [WordPress Trac] #58098: Empty top-level menu item to have role=button

WordPress Trac noreply at wordpress.org
Thu Apr 6 14:06:29 UTC 2023


#58098: Empty top-level menu item to have role=button
-------------------------+-----------------------------
 Reporter:  robanna      |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Menus        |    Version:  6.2
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 For accessibility, an empty top-level menu item should have role="button"
 added to the custom link.

 When setting up a menu with a top-level menu item with a custom link that
 is blank or to an anchor, the output looks like:
 <a>Top Menu Item</a> or <a href="#">Top Menu Item</a>

 It should have role=button added when that is the case:
 <a role="button">Top Menu Item</a> or <a href="#" role="button">Top Menu
 Item</a>

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58098>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list