Skip to content
Snippets Groups Projects
Commit b2413592 authored by Georg Krause's avatar Georg Krause Committed by Marge
Browse files

fix: Make sure to update aria-expanded on menu

Part-of: <!88>
parent 07d2e5b0
No related branches found
No related tags found
1 merge request!88fix: Make sure to update aria-expanded on menu
Pipeline #32441 passed
......@@ -19,6 +19,12 @@ document.addEventListener('DOMContentLoaded', () => {
el.classList.toggle('is-active');
$target.classList.toggle('is-active');
el.setAttribute(
'aria-expanded',
el.getAttribute('aria-expanded') === 'true'
? 'false'
: 'true'
);
});
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment