Opened 3 years ago
Closed 3 years ago
#6296 closed defect (bug) (fixed)
Navigation: HTML ul element should not contain aria-expanded
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Profiles | Keywords: | |
Cc: |
Description
On profiles.wordpress.org and possibly other sites, the ul element has aria-expanded.
<nav id="site-navigation" class="main-navigation" role="navigation"> <button class="menu-toggle dashicons dashicons-arrow-down-alt2" aria-controls="primary-menu" aria-expanded="false" aria-label="Primary Menu"></button> <div id="primary-menu" class="menu"> <ul class="nav-menu" aria-expanded="false"> <li class=""><a href="https://login.wordpress.org/register?locale=en_US&redirect_to=https%3A%2F%2Fprofiles.wordpress.org%2Falexstine%2F" rel="nofollow">Register</a></li> <li><a href="https://login.wordpress.org/?redirect_to=https%3A%2F%2Fprofiles.wordpress.org%2Falexstine%2F&locale=en_US" rel="nofollow">Log In</a></li> </ul> </div> </nav>
The ul element should not have aria-expanded only a trigger button.
Change History (4)
Note: See
TracTickets for help on using
tickets.
Looks like this is coming from https://profiles.wordpress.org/wp-content/themes/profiles.wordpress.org/navigation.js?ver=1
Thanks @alexstine!