How to fix: scroll areas not reachable by keyboard
WCAG 2.2 success criterion 2.1.1 (level A)
Why it matters
Keyboard users cannot scroll the content.
How to fix
Add tabindex="0" and an accessible name to scrollable containers.
<div class="scroll" tabindex="0" aria-label="Product table">…</div>
Test it yourself
- Find boxes with their own scrollbar (tables, chat logs, terms boxes) and try to scroll them with the keyboard only, using Tab and the arrow keys.
Common mistakes
- A wide price table in an overflow:auto box with nothing focusable inside.
- Fixing it with tabindex="0" but no accessible name on the region.
Check your own site
Find this and other problems on your website in 30 seconds, free.