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

WordPress Trac noreply at wordpress.org
Fri Apr 7 12:10:25 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:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  accessibility
-------------------------+------------------------------

Comment (by kelvinballoo):

 I was not able to fully simulate this issue.

 I created an empty empty first and also an anchor link menu on twenty
 twenty three theme.

 Here's the resulting HTML Code:

 {{{
 <a href="#youneverknow" aria-haspopup="true" aria-expanded="false">travel
 guide</a>
 }}}

 On one hand, I don't have the 'role=button' but on the other, there is the
 aria tags which actually define it as a button?

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


More information about the wp-trac mailing list