_s: Improve menu toggle accessibility.
Makes it a little easier to use the primary navigation with assistive devices. See #545.
This commit is contained in:
parent
23d0a41722
commit
d8d89bc681
2 changed files with 16 additions and 6 deletions
|
@ -29,7 +29,7 @@
|
|||
</div><!-- .site-branding -->
|
||||
|
||||
<nav id="site-navigation" class="main-navigation" role="navigation">
|
||||
<button class="menu-toggle"><?php _e( 'Primary Menu', '_s' ); ?></button>
|
||||
<button class="menu-toggle" aria-controls="menu" aria-expanded="false"><?php _e( 'Primary Menu', '_s' ); ?></button>
|
||||
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
|
||||
</nav><!-- #site-navigation -->
|
||||
</header><!-- #masthead -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue