Goal
Prevent keyboard users from getting stuck.
Loading ...
Success Criterion · WCAG 2.1.2
If keyboard focus can be moved to a component of the page using a keyboard interface, then focus can be moved away from that component using only a keyboard interface, and, if it requires more than unmodified arrow or tab keys or other standard exit methods, the user is advised of the method for moving focus away.
Goal
Prevent keyboard users from getting stuck.
What to do
If focus can move into a component via keyboard, users must also be able to move focus out using keyboard.
Why it matters
Keyboard traps make pages unusable for keyboard-only users and screen reader users.
Success criterion
Summarized directly from the official Understanding document so teams can quote the requirement accurately.
If keyboard focus can be moved to a component of the page using a keyboard interface, then focus can be moved away from that component using only a keyboard interface, and, if it requires more than unmodified arrow or tab keys or other standard exit methods, the user is advised of the method for moving focus away.
Intent
Benefits
Why it matters
Summaries drawn from the Understanding document help you socialize impact statements with product stakeholders.
Users may be unable to reach essential controls like Submit or Close.
Users may need to refresh/leave the page to recover, causing data loss.
Screen reader users may be stuck inside an embedded widget with no exit.
Users must never get “trapped” inside a widget, modal, iframe, or other component. Focus must be able to leave the component using standard keyboard mechanisms (typically Tab/Shift+Tab, Escape, etc.). If a non-standard exit method is required, users must be told.
Reference: All summaries and highlights originate from Understanding WCAG 2.1.2 and the W3C quick reference.
Examples
Share pass/fail snapshots to coach designers, engineers, QA, and content authors.
Pass
Tab cycles inside modal, Escape closes, focus returns to the “Open modal” button.
Fail
Focus enters modal but cannot reach the close button or exit the modal using keyboard.
Pass
Widget allows Tab to move to next focusable element outside the widget.
Fail
Widget intercepts Tab and keeps focus cycling with no escape.
Pass
Iframe has a clear “Skip embedded content” link before it.
Fail
Iframe traps focus with no way to return to the host page.
Evidence to keep
Capture artifacts for VPATs, procurement reviews, and regression testing.
Official resources
Keep these links handy when writing acceptance criteria or responding to audits.
Implementation checklist
Testing ideas
Related success criteria