Changelog entry
V5 accessibility, contrast, and CSS performance guardrails (V5UI.W5.1B, Issue #785)
2026-04-05
- Added automated WCAG 2.1 AA contrast-ratio validation for all core design token pairs (`--foreground`, `--muted`, `--t3`, `--accent`, `--danger`, `--success`, `--warning`) in both dark and light themes. Thresholds: 4.5:1 for body text, 3.0:1 for UI components and tertiary text.
- Added static-analysis a11y contract tests verifying dialog focus-trap coverage: `FOCUSABLE_SELECTOR` element types, `aria-hidden`/disabled filtering, both Tab directions (forward and Shift+Tab), and container fallback focus.
- Added CSS perf guardrail tests with documented budgets: file size ≤ 50 KB, `backdrop-filter` ≤ 5, `@keyframes` ≤ 10, `will-change` ≤ 3, animation/transition shorthands ≤ 20. CI emits a structured JSON perf report on each run.
- All guardrails run in the standard CI suite; any future token or CSS change that violates a threshold will fail CI immediately.