ShtukbaseStandard
package page→ /design/a11y.md

pages/design/a11y.md

38 lines, 2.1 KB. As a page.

  1. ---
  2. type: Page
  3. title: "Accessibility"
  4. description: "How the project holds accessibility to WCAG 2.2 AA: what programs check, what a judge looks at, check settings."
  5. icon: "♿"
  6. minContrast: 4.5
  7. pairs: []
  8. skipPairs: []
  9. ---
  10. # Accessibility
  11. 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.
  12. | Norm | What | Who holds it |
  13. |---|---|---|
  14. | [A11Y-R01](/norms/rules/design-a11y/A11Y-R01.md) | Theme text contrast is at least 4.5:1 | the `contrast` check |
  15. | [A11Y-R02](/norms/rules/design-a11y/A11Y-R02.md) | An image has alt | the `alt` check |
  16. | [A11Y-R03](/norms/rules/design-a11y/A11Y-R03.md) | A form field has a label | the `labels` check |
  17. | [A11Y-R04](/norms/rules/design-a11y/A11Y-R04.md) | A button and a link have a name | the `names` check |
  18. | [A11Y-R05](/norms/rules/design-a11y/A11Y-R05.md) | Headings are in order | the `headings` check |
  19. | [A11Y-R06](/norms/rules/design-a11y/A11Y-R06.md) | A page has a language | the `lang` check |
  20. | [A11Y-R07](/norms/rules/design-a11y/A11Y-R07.md) | Color is not the only signal | judge |
  21. | [A11Y-R08](/norms/rules/design-a11y/A11Y-R08.md) | Keyboard, focus, target size, structure | judge |
  22. ## Settings
  23. - `minContrast` is the lower contrast limit, 4.5 by default. For an AAA-level project, 7.
  24. - `pairs` are your own "text on background" pairs that cannot be seen from names: `"--muted-foreground on --card"`.
  25. - `skipPairs` are pairs that are deliberately not text: `"--ring-foreground on --ring"`.
  26. Which files the checks look at is on the page [Which files the design checks look at](/design/design-checks.md).
  27. ## What programs cannot see
  28. 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.
  29. Source: [WCAG 2.2](https://www.w3.org/TR/WCAG22/), level AA.