πŸ”₯ HOT: Changeset/ - High Quality

Changeset 7964


Ignore:
Timestamp:
12/09/2018 08:07:32 PM (7 years ago)
Author:
obenland
Message:

WPorg: Remove unnecessary aria attribute.

Props rianrietveld.
Fixes #3927.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/js/navigation.js

    r6277 r7964 Β 
    2929    }
    3030
    31Β     menu.setAttribute( 'aria-expanded', 'false' );
    3231    if ( -1 === menu.className.indexOf( 'nav-menu' ) ) {
    3332        menu.className += ' nav-menu';
    … … Β 
    3837            container.className = container.className.replace( ' toggled', '' );
    3938            button.setAttribute( 'aria-expanded', 'false' );
    40Β             menu.setAttribute( 'aria-expanded', 'false' );
    4139        } else {
    4240            container.className += ' toggled';
    4341            button.setAttribute( 'aria-expanded', 'true' );
    44Β             menu.setAttribute( 'aria-expanded', 'true' );
    4542        }
    4643    };
Note: See TracChangeset for help on using the changeset viewer.