From b44cdaecbcfeff57ff7c03d1bb6daa552a7b90ed Mon Sep 17 00:00:00 2001 From: Jared Caraway Date: Wed, 27 Jun 2018 17:03:36 -0500 Subject: [PATCH] Remove unnecessary aria-expanded attribute on ul Remove another irrelevant instance of aria-expanded --- js/navigation.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/js/navigation.js b/js/navigation.js index ee18d754..cf5a0b06 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -25,7 +25,6 @@ return; } - menu.setAttribute( 'aria-expanded', 'false' ); if ( -1 === menu.className.indexOf( 'nav-menu' ) ) { menu.className += ' nav-menu'; } @@ -34,11 +33,9 @@ if ( -1 !== container.className.indexOf( 'toggled' ) ) { container.className = container.className.replace( ' toggled', '' ); button.setAttribute( 'aria-expanded', 'false' ); - menu.setAttribute( 'aria-expanded', 'false' ); } else { container.className += ' toggled'; button.setAttribute( 'aria-expanded', 'true' ); - menu.setAttribute( 'aria-expanded', 'true' ); } }; @@ -49,7 +46,6 @@ if ( ! isClickInside ) { container.className = container.className.replace( ' toggled', '' ); button.setAttribute( 'aria-expanded', 'false' ); - menu.setAttribute( 'aria-expanded', 'false' ); } } );