feat: #3626503 Meet WCAG 2.2 AAA in light and dark mode

Brings UI Suite UIkit to WCAG 2.2 AAA where a theme can, in light and dark mode.

Issue: https://www.drupal.org/project/ui_suite_uikit/issues/3626503

  • Dark mode applies its link and button colours again (a later :root block cancelled them).
  • AAA tokens (7:1) for text, links and primary/danger/success/warning, with text tokens separate from background tokens; alerts with dark versions; inverse text on primary sections and cards.
  • One solid 2px focus ring with an offset on every control, inside inverse sections too.
  • A form border token (1.4.11), 44px targets (skip link, feed link, teaser titles, slider controls, offcanvas close), text wrapped at 65ch, reduced motion, a slider pause that stays paused.
  • UI Skins defaults match the values the theme applies (sites that saved their own keep them).
  • Component documentation links carry their own titles (2.4.9).
  • webship-js: 05-02-01-wcag-aaa.feature (axe AAA on pages and the component library in both modes, focus, targets, reflow); webships 65 passed / 6 skipped, webship-starter 49 passed / 22 skipped, 0 failed. README lists the AAA criteria that need a manual check.

AI-Generated: Yes

Checkpoints

  • File an issue
  • Addition for a new supported feature
  • Automated functional testing coverage
  • Accessibility
  • Documentation
  • CI pipeline green
  • Release
Edited by Rajab Natshah

Merge request reports

Loading
Loading