diff --git a/functions.php b/functions.php index 48ece08fa..38ea36ec7 100644 --- a/functions.php +++ b/functions.php @@ -140,7 +140,7 @@ function twentytwelve_scripts_styles() { wp_enqueue_script( 'comment-reply' ); // Adds JavaScript for handling the navigation menu hide-and-show behavior. - wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '20140608', true ); + wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '20140711', true ); $font_url = twentytwelve_get_font_url(); if ( ! empty( $font_url ) ) diff --git a/header.php b/header.php index 6a665a557..8dcd9a99e 100644 --- a/header.php +++ b/header.php @@ -40,7 +40,7 @@ diff --git a/js/navigation.js b/js/navigation.js index 383077ad5..34a640246 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -8,7 +8,7 @@ return; } - button = nav.getElementsByTagName( 'h3' )[0]; + button = nav.getElementsByTagName( 'button' )[0]; menu = nav.getElementsByTagName( 'ul' )[0]; if ( ! button ) { return; diff --git a/style.css b/style.css index 110332867..a35f96ab1 100644 --- a/style.css +++ b/style.css @@ -272,6 +272,7 @@ input[disabled] { cursor: default; } .menu-toggle:hover, +.menu-toggle:focus, button:hover, input[type="submit"]:hover, input[type="button"]:hover,