Making WordPress.org

Changeset 7964


Ignore:
Timestamp:
12/09/2018 08:07:32 PM (5 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.