refining accessibility — starting on conseils
This commit is contained in:
parent
1b6e90856b
commit
45dbe21d98
|
|
@ -101,7 +101,7 @@
|
||||||
console.log("open menu");
|
console.log("open menu");
|
||||||
mobileMenuToggle.setAttribute("aria-expanded", "true");
|
mobileMenuToggle.setAttribute("aria-expanded", "true");
|
||||||
const textContent = mobileMenuToggle.querySelector("span.text-content");
|
const textContent = mobileMenuToggle.querySelector("span.text-content");
|
||||||
textContent.textContent = mobileMenuToggle.getAttribute("data-text-open");
|
textContent.textContent = mobileMenuToggle.getAttribute("data-text-close");
|
||||||
function openRenovateur() {
|
function openRenovateur() {
|
||||||
renovateurNavListContainer.removeAttribute("closed", "");
|
renovateurNavListContainer.removeAttribute("closed", "");
|
||||||
renovateurNavListContainer.setAttribute("opened", "");
|
renovateurNavListContainer.setAttribute("opened", "");
|
||||||
|
|
@ -127,7 +127,7 @@
|
||||||
function closeMenu(menuContainer) {
|
function closeMenu(menuContainer) {
|
||||||
mobileMenuToggle.setAttribute("aria-expanded", "false");
|
mobileMenuToggle.setAttribute("aria-expanded", "false");
|
||||||
let textContent = mobileMenuToggle.querySelector("span.text-content");
|
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.removeAttribute("opened");
|
||||||
renovateurNavListContainer.setAttribute("aria-hidden", "");
|
renovateurNavListContainer.setAttribute("aria-hidden", "");
|
||||||
renovateurNavListContainer.setAttribute("closing", "");
|
renovateurNavListContainer.setAttribute("closing", "");
|
||||||
|
|
|
||||||
|
|
@ -171,7 +171,7 @@ export default function menuInit() {
|
||||||
|
|
||||||
// Change Text button
|
// Change Text button
|
||||||
const textContent = mobileMenuToggle.querySelector('span.text-content');
|
const textContent = mobileMenuToggle.querySelector('span.text-content');
|
||||||
textContent.textContent = mobileMenuToggle.getAttribute('data-text-open');
|
textContent.textContent = mobileMenuToggle.getAttribute('data-text-close');
|
||||||
|
|
||||||
function openRenovateur() {
|
function openRenovateur() {
|
||||||
renovateurNavListContainer.removeAttribute('closed', '');
|
renovateurNavListContainer.removeAttribute('closed', '');
|
||||||
|
|
@ -214,7 +214,7 @@ export default function menuInit() {
|
||||||
|
|
||||||
// Button Text Content
|
// Button Text Content
|
||||||
let textContent = mobileMenuToggle.querySelector('span.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);
|
// console.log(test.textContent);
|
||||||
|
|
||||||
// CLOSING #RENOVATEUR
|
// CLOSING #RENOVATEUR
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user