3.20
Header code for mobile
Official text (as TDRA published it)
Have you used the header code as described for mobile use?
Why it matters to your customers
On a phone the menu folds behind one button. If that button has no name and does not say whether it is open, a screen reader user has no way into the rest of the site, and a menu that never collapses buries the content for everyone else.
How to fix it
Use the Design System's mobile header code: a menu collapsed by default, and a named menu button with aria-expanded and aria-controls pointing at the menu, then scan again.
How we measure it
At 375px we check for the official mobile header: a named menu button that opens the menu panel, and the menu collapsed. aria-expanded is noted, not scored, since the official code has none.
The official guideline for this item