diff --git a/js/app.js b/js/app.js index 8405dcf..df0390c 100644 --- a/js/app.js +++ b/js/app.js @@ -101,7 +101,7 @@ console.log("open menu"); mobileMenuToggle.setAttribute("aria-expanded", "true"); const textContent = mobileMenuToggle.querySelector("span.text-content"); - textContent.textContent = mobileMenuToggle.getAttribute("data-text-open"); + textContent.textContent = mobileMenuToggle.getAttribute("data-text-close"); function openRenovateur() { renovateurNavListContainer.removeAttribute("closed", ""); renovateurNavListContainer.setAttribute("opened", ""); @@ -127,7 +127,7 @@ function closeMenu(menuContainer) { mobileMenuToggle.setAttribute("aria-expanded", "false"); let textContent = mobileMenuToggle.querySelector("span.text-content"); - textContent.textContent = mobileMenuToggle.getAttribute("data-text-close"); + textContent.textContent = mobileMenuToggle.getAttribute("data-text-open"); renovateurNavListContainer.removeAttribute("opened"); renovateurNavListContainer.setAttribute("aria-hidden", ""); renovateurNavListContainer.setAttribute("closing", ""); diff --git a/resources/js/header.js b/resources/js/header.js index e9ef530..ca85944 100644 --- a/resources/js/header.js +++ b/resources/js/header.js @@ -171,7 +171,7 @@ export default function menuInit() { // Change Text button const textContent = mobileMenuToggle.querySelector('span.text-content'); - textContent.textContent = mobileMenuToggle.getAttribute('data-text-open'); + textContent.textContent = mobileMenuToggle.getAttribute('data-text-close'); function openRenovateur() { renovateurNavListContainer.removeAttribute('closed', ''); @@ -214,7 +214,7 @@ export default function menuInit() { // Button Text Content let textContent = mobileMenuToggle.querySelector('span.text-content'); - textContent.textContent = mobileMenuToggle.getAttribute('data-text-close'); + textContent.textContent = mobileMenuToggle.getAttribute('data-text-open'); // console.log(test.textContent); // CLOSING #RENOVATEUR