diff --git a/src/wp-content/themes/twentyfourteen/js/theme.js b/src/wp-content/themes/twentyfourteen/js/theme.js index 96ca838c3e..e7788bf2a3 100644 --- a/src/wp-content/themes/twentyfourteen/js/theme.js +++ b/src/wp-content/themes/twentyfourteen/js/theme.js @@ -117,16 +117,8 @@ } ); - /* Accessibility hover styles for menu. */ - $( '.primary-navigation li' ).hover( function() { - $( this ).addClass( 'a11y-focus' ); - }, function() { - $( this ).delay( '250' ).removeClass( 'a11y-focus' ); - } - ); - $( '.primary-navigation li a' ).on( 'focus blur', function() { - $( this ).parents().toggleClass( 'a11y-focus' ); - } - ); - + /* Focus styles for primary menu. */ + $( '.primary-navigation' ).find( 'a' ).on( 'focus.twentyfourteen blur.twentyfourteen', function() { + $( this ).parents().toggleClass( 'focus' ); + }); } )( jQuery ); \ No newline at end of file