Skip to content
easeweb
Search topics

Scrollable areas that a keyboard can't scroll

A checkout's terms box scrolls inside a fixed height but has nothing focusable in it, so in Safari Tab passes it by and the arrow keys scroll the page.

WCAG 2.2
SC 2.1.1A
Required by
Section 508 · EN 301 549 (EU)
Broken .terms { max-height: 10rem; overflow-y: auto; }
The accessibility problem illustrated: Motor:How do I read the rest?
01

The problem

Keyboard users in Safari can't scroll the terms box, so they can't read the returns and refunds terms they are asked to accept

02

Try it

Press Tab from Email, then use the arrow keys to read the terms down to 6. Refunds

Can you bring the returns and refunds clauses into view without the mouse, and still reach Place order?

Broken Can you fix this?

BrokenA scroll box with nothing to focus inside

Terms of sale

1. Orders. We accept your order when we email to confirm it.

2. Prices. Prices include tax. The delivery charge is shown before you pay.

3. Delivery. We deliver within 3 to 5 working days.

4. Changes. You can change or cancel your order until we email to say it has been sent.

5. Returns. You can return unused items within 30 days of delivery.

6. Refunds. We refund the card you paid with within 5 working days of receiving the return.

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Let a keyboard scroll the terms

Before
BrokenA scroll box with nothing to focus inside
<form action="/checkout" method="post">  …  <h2 id="terms-heading">Terms of sale</h2>  <div class="terms">    <p><strong>1. Orders.</strong> We accept your order when we email to confirm it.</p>    …    <p><strong>5. Returns.</strong> You can return unused items within 30 days of delivery.</p>    <p><strong>6. Refunds.</strong> We refund the card you paid with within 5 working days of receiving the return.</p>  </div>  <label>    <input type="checkbox" name="accept-terms" required>    I have read and accept the terms of sale  </label>  <button type="submit">Place order</button></form>
What is wrong3 points
  • The clauses lower down can't be brought into view from the keyboard: the box is 10rem tall and scrolls, but nothing in it can take focus.
  • In Safari, Tab skips the terms: the box isn't a Tab stop of its own, so Tab goes from the field before it to the checkbox after it.
  • The arrow keys and Page Down don't move the text inside it: with focus outside the box, they scroll the page instead.
After

A scroll box that Tab can reach, with a name

<form action="/checkout" method="post">  …  <h2 id="terms-heading">Terms of sale</h2>  <div class="terms" tabindex="0" role="region" aria-labelledby="terms-heading">    <p><strong>1. Orders.</strong> We accept your order when we email to confirm it.</p>    …    <p><strong>5. Returns.</strong> You can return unused items within 30 days of delivery.</p>    <p><strong>6. Refunds.</strong> We refund the card you paid with within 5 working days of receiving the return.</p>  </div>  <label>    <input type="checkbox" name="accept-terms" required>    I have read and accept the terms of sale  </label>  <button type="submit">Place order</button></form>
How it is fixed3 steps
  1. Add tabindex="0" to the box. It is in the Tab order in every browser, between the field before it and the checkbox, and once it has focus the arrow keys, Page Up, Page Down, Home, End and Space scroll it.
  2. Give it a ring on :focus-visible. It shows where focus went, because a box has no other way to look focused.
  3. Add role="region" with aria-labelledby pointing at the heading. A screen reader then says "Terms of sale, region" when Tab lands there, instead of starting on the first clause with no warning.

This fixes the Before and passes 2.1.1. WCAG doesn't require the role and name: the working group agreed in October 2026 that a focusable element that exposes a plain role doesn't fail 4.1.2. They are there for the people who hear the page.

04

Verify the fix

4 checks, no mouse.

Test with: Keyboard, Zoom, Screen reader

0 of 4 checked

Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat after changing the shared checkout, table or code components.

Limits

This is a starting pattern, not a guarantee for every application. It covers boxes that scroll with the browser's own scrolling. A carousel or a list scrolled by arrow buttons is covered in carousels that keyboard and screen reader users can't use, and a box that clips its text with overflow: hidden when the text is enlarged, with no way to scroll at all, in fixed-height boxes that cut off enlarged text. A page whose own scrolling a script has taken over is in full-page sections that Page Down and Space can't move. Test the complete journey in Safari as well as in Chrome, at the widths your visitors use.

This is a recreated teaching example, not a finding about a named client. The code is a starting pattern: test it in your own product. No completed assistive-technology test is claimed here.

EaseWeb service

Fixed it? Keep it from coming back.

I turn guides like this one into rules your coding agents follow and checks your CI runs. Then I retest by hand with a keyboard and screen readers, periodically.

See the service