Ticket #31527: 31527.twentythirteen.onResizeARIADocBlock.patch
File 31527.twentythirteen.onResizeARIADocBlock.patch, 662 bytes (added by , 10 years ago) |
---|
-
wp-content/themes/twentythirteen/js/functions.js
74 74 } ); 75 75 } )(); 76 76 77 // Add or remove ARIA attributes. 77 /** 78 * @summary Add or remove ARIA attributes. 79 * 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. 80 * @since 4.2 81 */ 78 82 function onResizeARIA() { 79 83 if ( 643 > _window.width() ) { 80 84 button.attr( 'aria-expanded', 'false' );