Use native button elements where possible and make buttons reachable using the keyboard.
The requirement (from the design system site)
Use native button elements where possible and make buttons reachable using the keyboard.
Why it matters to users
Someone who cannot use a mouse, because of a motor disability or because they rely on a screen reader, moves through the page with the Tab key. A button built from a div or span never receives focus, so the service stops for them at that step.
How to fix it
Replace div and span elements that act as buttons with a native button element or gup-button, which take focus and respond to Enter and Space without extra code. Then scan again.
How we measure it
Flag div/span/li with role=button or click handlers, label[for] that drives a hidden checkbox or radio (CSS toggle), a without href used as a button, and a[href="#"] / javascript: / a[role=button] links with no real target (menu items and tab toggles excluded). Those that cannot take focus fail keyboard reachability and cap the result at partly. Header/footer/fixed widgets count once.
The rule on the design system site