Ticket #25592: 25592.3.diff
File 25592.3.diff, 1.3 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentyfourteen/js/functions.js
56 56 57 57 $( function() { 58 58 // Search toggle. 59 $( '.search-toggle' ).on( 'click.twentyfourteen', function( ) {59 $( '.search-toggle' ).on( 'click.twentyfourteen', function( event ) { 60 60 var that = $( this ), 61 61 wrapper = $( '.search-box-wrapper' ); 62 62 … … 63 63 that.toggleClass( 'active' ); 64 64 wrapper.toggleClass( 'hide' ); 65 65 66 if ( that.is( '.active' ) ) {66 if ( that.is( '.active' ) || $( '.screen-reader-text' ) === event.target ) { 67 67 wrapper.find( '.search-field' ).focus(); 68 68 } 69 69 } ); -
wp-content/themes/twentyfourteen/style.css
903 903 width: 100%; 904 904 } 905 905 906 .search-toggle .screen-reader-text {907 right: 0; /* This makes sure a horizontal scrollbar won't appear */908 }909 906 910 911 907 /** 912 908 * 5.0 Navigation 913 909 * -----------------------------------------------------------------------------