diff --git a/app/static/js/scripts.js b/app/static/js/scripts.js index 18f95680..db4163f9 100644 --- a/app/static/js/scripts.js +++ b/app/static/js/scripts.js @@ -27,8 +27,12 @@ function setupMobileNav() { navbarToggler.addEventListener("click", function(event) { toggleClass('navbarSupportedContent', 'show_menu'); var isExpanded = navbarSupportedContent.classList.contains('show_menu'); + navbarToggler.setAttribute('aria-expanded', isExpanded ? 'true' : 'false'); navbarSupportedContent.setAttribute('aria-expanded', isExpanded ? 'true' : 'false'); }); + if(window.innerWidth < 992) { + navbarToggler.setAttribute('aria-expanded', 'false'); + } } function setupLightDark() { diff --git a/app/templates/base.html b/app/templates/base.html index c2552f3b..0134950a 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -112,7 +112,7 @@ {% endif %} -