Make WordPress Core

Ticket #28224: 28224.2.diff

File 28224.2.diff, 1.6 KB (added by rclations, 10 years ago)
  • wp-content/themes/twentytwelve/header.php

     
    4040                </hgroup>
    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' ) ); ?>
    4646                </nav><!-- #site-navigation -->
  • wp-content/themes/twentytwelve/js/navigation.js

     
    88                return;
    99        }
    1010
    11         button = nav.getElementsByTagName( 'h3' )[0];
     11        button = nav.getElementsByTagName( 'button' )[0];
    1212        menu   = nav.getElementsByTagName( 'ul' )[0];
    1313        if ( ! button ) {
    1414                return;
  • wp-content/themes/twentytwelve/style.css

     
    272272        cursor: default;
    273273}
    274274.menu-toggle:hover,
     275.menu-toggle:focus,
    275276button:hover,
    276277input[type="submit"]:hover,
    277278input[type="button"]:hover,