Keyboard focus must never become trapped in a component; users must be able to move away using only the keyboard. (WCAG 2.1 SC 2.1.2)
Why This Matters
Keyboard-only users get stuck and can lose access to the entire rest of the page.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.