diff --git a/src/_includes/global/navbar.njk b/src/_includes/global/navbar.njk index da709c16..d168f2f0 100644 --- a/src/_includes/global/navbar.njk +++ b/src/_includes/global/navbar.njk @@ -96,7 +96,7 @@ const showClass = "navbar__links--show"; navbarLinks.classList.toggle(showClass); - if (navbarLinks.classList.contains(showClass)) { + if (navbarToggle.getAttribute("aria-expanded") === "false") { navbarToggle.setAttribute("aria-expanded", "true"); } else { navbarToggle.setAttribute("aria-expanded", "false");