Merge pull request #459 from philiparthurmoore/menu-a11y

a11y improvements on primary navigation menu toggle
This commit is contained in:
Philip Arthur Moore 2014-04-27 11:48:11 +07:00
commit 53f62fa23a
3 changed files with 2 additions and 3 deletions

View File

@ -28,7 +28,7 @@
</div>
<nav id="site-navigation" class="main-navigation" role="navigation">
<h1 class="menu-toggle"><?php _e( 'Menu', '_s' ); ?></h1>
<button class="menu-toggle"><?php _e( 'Primary Menu', '_s' ); ?></button>
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', '_s' ); ?></a>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>

View File

@ -10,7 +10,7 @@
if ( ! container )
return;
button = container.getElementsByTagName( 'h1' )[0];
button = container.getElementsByTagName( 'button' )[0];
if ( 'undefined' === typeof button )
return;

View File

@ -413,7 +413,6 @@ a:active {
}
/* Small menu */
.menu-toggle {
cursor: pointer;
display: none;
}
@media screen and (max-width: 600px) {