What AuditX checks
The scan opens the page you scanned in a browser at phone size (390 by 844 pixels). The desktop view is not used for this check. It collects every link inside a header, a nav element or an element with role="navigation". A link counts as visible when its box is more than 1 pixel wide and high and it is not hidden with display none, visibility hidden or near-zero opacity. It also looks for a menu button: a visible element whose aria-label contains menu, an element with aria-controls inside the header or navigation or pointing at a menu, drawer or sidebar (tabs and accordions in the content do not count), a hamburger or menu toggle class, a button or summary named Menu or Navigation (also the Swedish, Norwegian and Danish Meny and the Finnish Valikko), a label for a hidden checkbox, a small clickable box near the top with a menu-like name, a link to # with no text such as the off-canvas toggle of the Foundation framework, or an element near the top with a menu-like class whose only word is Menu or Meny, even when it keeps the default cursor. Links that are hidden but sit in a dropdown under a visible menu item are counted separately. When there are no such links at all, the result is an info note, which does not lower the score. If every link is hidden and no menu button was found, it fails. If every link is hidden but a menu button was found, it passes, because the scan cannot tap the button. With no menu button, it warns when at least 2 links are hidden and the hidden links are 30 percent or more of all links. Otherwise it passes. If the phone view could not be measured, the result is an info note that says so. The scan does not open the menu, so it cannot tell whether the button works. This is one of four checks that can cap the overall score. If two of them fail, the overall score cannot go above 79.
Why it matters
Nielsen Norman Group testing found that hiding a site's main navigation, for example behind a hamburger icon, cut discoverability almost in half and made tasks take longer. A menu that cannot be reached at all is worse.
On a phone there is no wide header to fall back on. If the menu is hidden and nothing opens it, a visitor can only use the links in the page itself.
How to fix it
- Open the site on a real phone and look at the top of the page. You should see either the main links or a clearly marked menu button.
- If your mobile style sheet hides the menu, add a button that opens it, or leave the main links visible.
- Make the button a real button element with an accessible name such as Menu, and set aria-expanded to show whether the menu is open.
- Tap every item that has a dropdown and check that its links appear. The scan cannot do this for you.
<button type="button" aria-expanded="false" aria-controls="main-menu">Menu</button>
<nav id="main-menu">...</nav>
Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.
Scan my siteSources
- Nielsen Norman Group: Hamburger Menus and Hidden Navigation Hurt UX Metrics
- Nielsen Norman Group: Mobile Navigation Patterns