Accessibility
How the project holds accessibility to WCAG 2.2 AA: what programs check, what a judge looks at, check settings.
The project holds level AA of the WCAG 2.2 standard. Programs check six norms; a judge (a person or a reviewer agent) checks two.
| Norm | What | Who holds it |
|---|---|---|
| A11Y-R01 | Theme text contrast is at least 4.5:1 | the contrast check |
| A11Y-R02 | An image has alt | the alt check |
| A11Y-R03 | A form field has a label | the labels check |
| A11Y-R04 | A button and a link have a name | the names check |
| A11Y-R05 | Headings are in order | the headings check |
| A11Y-R06 | A page has a language | the lang check |
| A11Y-R07 | Color is not the only signal | judge |
| A11Y-R08 | Keyboard, focus, target size, structure | judge |
Settings
minContrastis the lower contrast limit, 4.5 by default. For an AAA-level project, 7.pairsare your own "text on background" pairs that cannot be seen from names:"--muted-foreground on --card".skipPairsare pairs that are deliberately not text:"--ring-foreground on --ring".
Which files the checks look at is on the page Which files the design checks look at.
What programs cannot see
Code shows attributes, but not the page. A program does not know what a color means, where focus will land, how large a button turned out, or how the headings of different components will fit together. A judge looks at this by its own procedure (norms A11Y-R07 and A11Y-R08). A program also makes mistakes: a label that arrives through {...props} or an expression is invisible to it, so it skips such places instead of counting them as violations.
Source: WCAG 2.2, level AA.
/design/a11y.md.Source text