success criterion
One numbered, testable requirement in WCAG, such as 2.1.2 No Keyboard Trap or 1.4.3 Contrast (Minimum).
In more detail
Each success criterion has a conformance level and can be checked as pass or fail. Automated tools map their rules to criteria. Criterion 2.1.2 says keyboard users must always be able to move focus away from a component, which is why every focus trap needs an Escape route.
Related terms
- WCAG — The Web Content Accessibility Guidelines, the W3C standard that defines testable requirements for making web content accessible.
- WCAG conformance level — One of WCAG's three grades, A, AA and AAA, where each level includes all requirements of the levels before it.
- focus trap — Code that keeps keyboard focus inside a container, such as an open modal, wrapping from the last element back to the first.
Taught in
- Focus Management: Trapping, Restoration & Focus Rings — Design Systems & Component Engineering
- Automated Accessibility Testing: axe-core & Testing Library — Design Systems & Component Engineering