Accessibility
WCAG 2.2 AA richtlijnen, contrast en keyboard navigatie
Accessibility
Roosevelt OPS voldoet minimaal aan WCAG 2.2 Level AA. Accessibility is geen afterthought — het is ingebouwd via de token architectuur.
Contrast Requirements
| Level | Ratio | Geldt voor |
|---|---|---|
| AA (normaal) | 4.5:1 | Body tekst (< 18px / < 14px bold) |
| AA (groot) | 3:1 | Headings (>= 18px / >= 14px bold) |
| AAA | 7:1 | Verhoogde leesbaarheid |
Token Contrast Tabel
| Token | Op achtergrond | Ratio | Level |
|---|---|---|---|
label-primary | surface-primary (light) | 17.4:1 | AAA |
label-secondary | surface-primary (light) | ~7:1 | AAA |
label-tertiary | surface-primary (light) | ~4.5:1 | AA |
brand | surface-primary (light) | 12.31:1 | AAA |
brand | surface-primary (dark) | 4.6:1 | AA |
label-on-color | brand (light) | 12.31:1 | AAA |
Focus Management
Alle interactieve elementen gebruiken een consistente focus ring:
| Property | Waarde |
|---|---|
| Ring width | 2px |
| Ring color | --color-outline-active |
| Ring offset | 2px |
Keyboard Navigatie
| Component | Keys |
|---|---|
| Button | Enter, Space — activeer |
| Link | Enter — navigeer |
| Input | Tab — focus, Escape — clear/cancel |
| Modal | Escape — sluit, Tab — cycle focus |
| Dropdown | Arrow Up/Down — navigeer, Enter — selecteer, Escape — sluit |
ARIA Patterns
⚠
Kleur als indicator
Gebruik kleur nooit als enige indicator. Combineer altijd met tekst, iconen of patronen. Badges, status indicators en error states moeten ook zonder kleur begrijpelijk zijn.