package page→ /design/a11y.md
pages/design/a11y.md
38 lines, 2.1 KB. As a page.
- ---
- type: Page
- title: "Accessibility"
- description: "How the project holds accessibility to WCAG 2.2 AA: what programs check, what a judge looks at, check settings."
- icon: "♿"
- minContrast: 4.5
- pairs: []
- skipPairs: []
- ---
- # Accessibility
- 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](/norms/rules/design-a11y/A11Y-R01.md) | Theme text contrast is at least 4.5:1 | the `contrast` check |
- | [A11Y-R02](/norms/rules/design-a11y/A11Y-R02.md) | An image has alt | the `alt` check |
- | [A11Y-R03](/norms/rules/design-a11y/A11Y-R03.md) | A form field has a label | the `labels` check |
- | [A11Y-R04](/norms/rules/design-a11y/A11Y-R04.md) | A button and a link have a name | the `names` check |
- | [A11Y-R05](/norms/rules/design-a11y/A11Y-R05.md) | Headings are in order | the `headings` check |
- | [A11Y-R06](/norms/rules/design-a11y/A11Y-R06.md) | A page has a language | the `lang` check |
- | [A11Y-R07](/norms/rules/design-a11y/A11Y-R07.md) | Color is not the only signal | judge |
- | [A11Y-R08](/norms/rules/design-a11y/A11Y-R08.md) | Keyboard, focus, target size, structure | judge |
- ## Settings
- - `minContrast` is the lower contrast limit, 4.5 by default. For an AAA-level project, 7.
- - `pairs` are your own "text on background" pairs that cannot be seen from names: `"--muted-foreground on --card"`.
- - `skipPairs` are 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](/design/design-checks.md).
- ## 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](https://www.w3.org/TR/WCAG22/), level AA.