Skip to content

Commit

Permalink
Merge pull request #657 from jaspermdegroot/header
Browse files Browse the repository at this point in the history
Made aria-controls refer to an ID instead of a class. Prevents ARIA error.
  • Loading branch information
davidakennedy committed Mar 4, 2015
2 parents 01217e3 + 412bdd8 commit 68fb791
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions header.php
Expand Up @@ -28,8 +28,8 @@
</div><!-- .site-branding --> </div><!-- .site-branding -->


<nav id="site-navigation" class="main-navigation" role="navigation"> <nav id="site-navigation" class="main-navigation" role="navigation">
<button class="menu-toggle" aria-controls="menu" aria-expanded="false"><?php _e( 'Primary Menu', '_s' ); ?></button> <button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php _e( 'Primary Menu', '_s' ); ?></button>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?> <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu' ) ); ?>
</nav><!-- #site-navigation --> </nav><!-- #site-navigation -->
</header><!-- #masthead --> </header><!-- #masthead -->


Expand Down

0 comments on commit 68fb791

Please sign in to comment.