diff --git a/src/_includes/global/navbar.njk b/src/_includes/global/navbar.njk index d168f2f0..fcaf8630 100644 --- a/src/_includes/global/navbar.njk +++ b/src/_includes/global/navbar.njk @@ -96,10 +96,10 @@ const showClass = "navbar__links--show"; navbarLinks.classList.toggle(showClass); - if (navbarToggle.getAttribute("aria-expanded") === "false") { - navbarToggle.setAttribute("aria-expanded", "true"); + if (navbarToggle.ariaExpanded === "false") { + navbarToggle.ariaExpanded = "true"; } else { - navbarToggle.setAttribute("aria-expanded", "false"); + navbarToggle.ariaExpanded = "false"; } }); \ No newline at end of file