Make WordPress Core


Ignore:
Timestamp:
07/11/2014 05:46:11 PM (8 years ago)
Author:
lancewillett
Message:

Twenty Twelve: 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 #28224, props rclations.

File:
1 edited

Legend:

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

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