Fix a minor spacing issue

This commit is contained in:
Ismail El Korchi 2020-04-10 03:04:28 +01:00
parent 29b0bb311f
commit 9dee764949
1 changed files with 9 additions and 9 deletions

View File

@ -42,16 +42,16 @@
} }
}; };
// Close small menu when user clicks outside // Close small menu when user clicks outside
document.addEventListener( 'click', function( event ) { document.addEventListener( 'click', function( event ) {
var isClickInside = container.contains( event.target ); var isClickInside = container.contains( event.target );
if ( ! isClickInside ) { if ( ! isClickInside ) {
container.className = container.className.replace( ' toggled', '' ); container.className = container.className.replace( ' toggled', '' );
button.setAttribute( 'aria-expanded', 'false' ); button.setAttribute( 'aria-expanded', 'false' );
menu.setAttribute( 'aria-expanded', 'false' ); menu.setAttribute( 'aria-expanded', 'false' );
} }
} ); } );
// Get all the link elements within the menu. // Get all the link elements within the menu.
links = menu.getElementsByTagName( 'a' ); links = menu.getElementsByTagName( 'a' );