ShtukbaseStandard
page/design/a11y.md

Accessibility

How the project holds accessibility to WCAG 2.2 AA: what programs check, what a judge looks at, check settings.

Page fields (4)
icon♿
minContrast4.5
pairs
skipPairs

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.

NormWhatWho holds it
A11Y-R01Theme text contrast is at least 4.5:1the contrast check
A11Y-R02An image has altthe alt check
A11Y-R03A form field has a labelthe labels check
A11Y-R04A button and a link have a namethe names check
A11Y-R05Headings are in orderthe headings check
A11Y-R06A page has a languagethe lang check
A11Y-R07Color is not the only signaljudge
A11Y-R08Keyboard, focus, target size, structurejudge

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.

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.

The package Accessibility to WCAG 2.2 AA puts this page at /design/a11y.md.Source text