Make WordPress Core


Ignore:
Timestamp:
07/15/2014 11:09:41 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: make small-screen menu accessible to keyboard commands and voice-driven software by using a focusable button element rather than h3 for the toggle element. Fixes #28293, props rclations and obenland.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentythirteen/header.php

    r28341 r29181  
    4141                        <div id="navbar" class="navbar">
    4242                                <nav id="site-navigation" class="navigation main-navigation" role="navigation">
    43                                         <h3 class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></h3>
     43                                        <button class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></button>
    4444                                        <a class="screen-reader-text skip-link" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentythirteen' ); ?>"><?php _e( 'Skip to content', 'twentythirteen' ); ?></a>
    4545                                        <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
Note: See TracChangeset for help on using the changeset viewer.