Make WordPress Core

Ticket #31527: 31527.twentyfifteen.onResizeARIADocBlock.patch

File 31527.twentyfifteen.onResizeARIADocBlock.patch, 659 bytes (added by davidakennedy, 10 years ago)

Twenty Fifteen onResizeARIA Doc Block

  • wp-content/themes/twentyfifteen/js/functions.js

     
    6060                } );
    6161        } )();
    6262
    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         */
    6468        function onResizeARIA() {
    6569                if ( 955 > $window.width() ) {
    6670                        button.attr( 'aria-expanded', 'false' );