Ticket #31527: 31527.twentyfifteen.onResizeARIADocBlock.patch
File 31527.twentyfifteen.onResizeARIADocBlock.patch, 659 bytes (added by , 10 years ago) |
---|
-
wp-content/themes/twentyfifteen/js/functions.js
60 60 } ); 61 61 } )(); 62 62 63 // Add or remove ARIA attributes. 63 /** 64 * @summary Add or remove ARIA attributes. 65 * Uses jQuery's $window.width() to determine the size of the window and add the default ARIA attributes for the menu toggle if it's on screen. 66 * @since 4.2 67 */ 64 68 function onResizeARIA() { 65 69 if ( 955 > $window.width() ) { 66 70 button.attr( 'aria-expanded', 'false' );