Making WordPress.org

Changeset 7965


Ignore:
Timestamp:
12/09/2018 08:13:35 PM (5 years ago)
Author:
obenland
Message:

Themes: Remove unnecessary aria attribute.

Props rianrietveld.
See #3927.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub
Files:
4 edited

Legend:

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

    r6304 r7965  
    2626    }
    2727
    28     menu.setAttribute( 'aria-expanded', 'false' );
    2928    if ( -1 === menu.className.indexOf( 'nav-menu' ) ) {
    3029        menu.className += ' nav-menu';
     
    3534            container.className = container.className.replace( ' toggled', '' );
    3635            button.setAttribute( 'aria-expanded', 'false' );
    37             menu.setAttribute( 'aria-expanded', 'false' );
    3836        } else {
    3937            container.className += ' toggled';
    4038            button.setAttribute( 'aria-expanded', 'true' );
    41             menu.setAttribute( 'aria-expanded', 'true' );
    4239        }
    4340    };
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/js/navigation.js

    r6514 r7965  
    2626    }
    2727
    28     menu.setAttribute( 'aria-expanded', 'false' );
    2928    if ( -1 === menu.className.indexOf( 'nav-menu' ) ) {
    3029        menu.className += ' nav-menu';
     
    3534            container.className = container.className.replace( ' toggled', '' );
    3635            button.setAttribute( 'aria-expanded', 'false' );
    37             menu.setAttribute( 'aria-expanded', 'false' );
    3836        } else {
    3937            container.className += ' toggled';
    4038            button.setAttribute( 'aria-expanded', 'true' );
    41             menu.setAttribute( 'aria-expanded', 'true' );
    4239        }
    4340    };
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/navigation.js

    r4223 r7965  
    2626    }
    2727
    28     menu.setAttribute( 'aria-expanded', 'false' );
    2928    if ( -1 === menu.className.indexOf( 'nav-menu' ) ) {
    3029        menu.className += ' nav-menu';
     
    3534            container.className = container.className.replace( ' toggled', '' );
    3635            button.setAttribute( 'aria-expanded', 'false' );
    37             menu.setAttribute( 'aria-expanded', 'false' );
    3836        } else {
    3937            container.className += ' toggled';
    4038            button.setAttribute( 'aria-expanded', 'true' );
    41             menu.setAttribute( 'aria-expanded', 'true' );
    4239        }
    4340    };
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/js/navigation.js

    r4779 r7965  
    2626    }
    2727
    28     menu.setAttribute( 'aria-expanded', 'false' );
    2928    if ( -1 === menu.className.indexOf( 'nav-menu' ) ) {
    3029        menu.className += ' nav-menu';
     
    3534            container.className = container.className.replace( ' toggled', '' );
    3635            button.setAttribute( 'aria-expanded', 'false' );
    37             menu.setAttribute( 'aria-expanded', 'false' );
    3836        } else {
    3937            container.className += ' toggled';
    4038            button.setAttribute( 'aria-expanded', 'true' );
    41             menu.setAttribute( 'aria-expanded', 'true' );
    4239        }
    4340    };
Note: See TracChangeset for help on using the changeset viewer.