Skip to content

Commit 680adc3

Browse files
committed
Fix: inconsistent mobile menu breakpoint values
1 parent 4abc12a commit 680adc3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wp-content/themes/twentyfourteen/js/functions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* The callback on the scroll event is only added if there is a header
6767
* image and we are not on mobile.
6868
*/
69-
if ( _window.width() > 781 ) {
69+
if ( _window.width() > 783 ) {
7070
var mastheadHeight = $( '#masthead' ).height(),
7171
toolbarOffset, mastheadOffset;
7272

@@ -100,7 +100,7 @@
100100
* @see trac ticket #30575
101101
*/
102102
function touchDropdown() {
103-
if ( 781 > _window.width() ) {
103+
if ( 783 > _window.width() ) {
104104
$( '.primary-navigation, .secondary-navigation' ).find( 'a' ).on( 'focus.twentyfourteen blur.twentyfourteen', function() {
105105
$( this ).parents().toggleClass( 'focus' );
106106
} );
@@ -131,7 +131,7 @@
131131
* @since Twenty Fourteen 1.4
132132
*/
133133
function onResizeARIA() {
134-
if ( 781 > _window.width() ) {
134+
if ( 783 > _window.width() ) {
135135
button.attr( 'aria-expanded', 'false' );
136136
menu.attr( 'aria-expanded', 'false' );
137137
button.attr( 'aria-controls', 'primary-menu' );

0 commit comments

Comments
 (0)