--- name: frontend-a11y-check description: accessibility checklist for frontend work targeting WCAG 2.2 AA minimum (AAA where possible). Load when building or reviewing UI, forms, interactive components, colours, or motion. --- # Frontend accessibility checklist **WCAG 2.2 AA is a hard minimum. Aim for AAA where possible.** ## Checklist - Semantic HTML first (`button`, `a`, `nav`, `main`, headings in order). ARIA only when no native element fits. - Everything interactive is keyboard reachable and operable; tab order follows visual order; never `tabindex` > 0. - Focus is always visible (never `outline: none` without a replacement). - Contrast (AA, required): 4.5:1 text, 3:1 large text and UI components. - Contrast (AAA, target): 7:1 text, 4.5:1 large text. - Target size: 24×24 CSS px is the AA minimum (2.5.8); 44×44 px is the AAA target (2.5.5). - Never convey state by colour alone (add icon, text, or pattern). - Every input has a programmatic label (`