Keyboard

Make scrollable regions reachable by keyboard

Rule ID: PF-SCROLL-REGION-KEYBOARD

  • WCAG A
  • 2.1.1 Keyboard
  • 2.1.3 Keyboard (No Exception)
  • W3C ACT aligned

Why it matters

A container that scrolls but can't take focus, such as a log panel or wide table, can't be scrolled with the arrow keys, so keyboard users can't reach the content hidden inside it. This maps to WCAG 2.1.1 Keyboard (Level A); Pallyfi also tags 2.1.3 Keyboard (No Exception, Level AAA).

Who it affects

  • Keyboard users
  • People using switch devices or voice control

How to fix it

Give the scrolling element tabindex="0" with a role such as region and an accessible name, or make sure it contains a focusable element that keyboard users can reach.

Accessible example
<div role="region" aria-label="Scan log" tabindex="0" style="max-height: 240px; overflow: auto">
  <pre>09:14 Scan started for /checkout
09:15 12 issues found
09:15 Scan finished</pre>
</div>

How to verify a fix

Scan the page again: the element should no longer be listed for this rule. Then check it the way people use it, for example with a keyboard or a screen reader, since a passing rule shows the markup is right, not that the experience works.

What automated testing can confirm

This is an automated rule that runs on every Pallyfi scan. A pass means the rule found no failing elements in what was rendered at scan time; it doesn’t cover content behind interactions the scan didn’t reach, and some criteria still need a person to check with a keyboard or screen reader. When the rule can’t decide on its own, the element is listed under Needs review instead. Manual audits record human evidence alongside the automated result.

Check your site for this

Quick Scan checks a public page against every rule Pallyfi runs and shows each failing element.

Run a Quick Scan