🟢 Level A

WCAG 2.1.2: No Keyboard Trap

Success Criterion 2.1.2 — Level A

Quick Answer

Keyboard users must be able to navigate away from any component without getting stuck.

Why It Matters

Modal dialogs and custom widgets often trap keyboard focus, stranding keyboard-only users.

How to Audit

Run an automated accessibility scan to detect common No Keyboard Trap failures. Then manually verify with: keyboard-only navigation, a screen reader (VoiceOver on Mac, NVDA on Windows), and browser developer tools. Automated tools catch approximately 40% of No Keyboard Trap issues — manual testing is essential.

How to Fix

Test that pressing Escape or Tab allows users to exit all interactive components.

Frequently Asked Questions

What is WCAG 2.1.2 No Keyboard Trap?

Keyboard users must be able to navigate away from any component without getting stuck.

Is WCAG 2.1.2 required for ADA compliance?

WCAG 2.1 Level A is the minimum baseline for ADA website compliance. Courts have upheld WCAG 2.1 AA as the standard for ADA Title III lawsuits.

How do I fix WCAG 2.1.2 violations?

Test that pressing Escape or Tab allows users to exit all interactive components.

Disclaimer: This guide is for informational purposes only and does not constitute legal advice. Consult a qualified ADA/accessibility attorney for your specific compliance situation.

Scan Your Site for WCAG 2.1.2 Issues

Get a free automated accessibility report including all WCAG 2.1 AA violations.

Run Free Accessibility Scan