Files
poli0981andClaude Fable 5.2 bf3eb9f22b fix(a11y): a focus ring that shows on a filled control, forced colours, 24 px targets
Found by an audit of src/ after a keyboard-only and Narrator pass over 1.2.0
found nothing; verified in a headless Chrome driven over CDP against the
harness, with forced-colors emulated.

- The theme control's ring was invisible. It is inset to stay inside the
  group's border, and roving focus only ever lands on the selected segment,
  which is filled with --accent: accent on accent. It is --accent-fg now, 4px
  in, so the fill shows on both sides of it.
- Contrast themes (forced-colors) remove every fill, shadow and background
  image. The tree's focused row and drop lines, the selected theme, the
  current tab and status-bar entry, the selected mode and format cards, the
  progress fill and the drop zone's dashed edge each get a system-colour
  equivalent. A border or outline wherever the state has a label: Chrome
  paints a backplate behind forced text, and a label on a Highlight fill
  became a box that hid it.
- Every pointer target is at least 24 x 24 px: the row buttons (22), the
  three disclosure chevrons (16, now one Disclosure component with a grown
  hit area), the toast and dialog dismiss buttons, the popup's gear, the
  picker's "Show more".
- A click on a row button or the chevron hands focus back to the tree.
  Chrome focuses a tabindex="-1" button on click and the tree ignores keys
  aimed at a row's own control, so one click switched the arrow keys off;
  "Move to…" from the row button now returns focus to the tree as well.

tests: focus-ring.test.ts fails on an inset ring over an accent fill;
forced-colors.test.ts holds the list of components that must carry the block.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-10 11:18:58 +07:00
..