Details
Description
We faced an a11y issue while bitv examination (german wcag). The left burger menu on mobile devices has no description. Screen reader says "button" only.
This menu has a span with class="sr.only" but no text in it. So we fixed it this way:
// top menu as burger on mobile devices has no description try { let burger = document.querySelector("#headerglobal > div.menu-horizontal-toggle > div.navbar-header > p > button > span.sr-only") burger.textContent = "top menu"; } catch (e) { console.log('top menu burger not found') }