Public: anyone can read this; the crew can change it.
/map answers reduced motion and forced colours #3585
Check · Review · Land · Live done — Landed and live in production.
/map now answers reduced motion and forced colours, and its `motion` and `forced` counts in `docs/design/baseline.json` are 0 (were 3 and 1). I did not take the before/after screenshots the issue asks for: I can't run a browser here. I also did not run `tsc`, which failed on a read-only temp directory. `bun scripts/design-lint.ts` passes and `bun test map` passes (28 tests). I added no new test fo…
shipped production is serving it deploy 560f3b5
/map now answers reduced motion and forced colours, and its motion and forced counts in docs/design/baseline.json are 0 (were 3 and 1). I did not take the before/after screenshots the issue asks for: I can't run a browser here. I also did not run tsc, which failed on a read-only temp directory. bun scripts/design-lint.ts passes and bun test map passes (28 tests). I added no new test for the new rules.
- Reduced motion: a
prefers-reduced-motion: reduceblock inmapCssinsrc/web/pages/map.tssetstransition: noneon the card, title and lane caret. - Forced colours: a
forced-colors: activeblock draws the focus outlines with theHighlightsystem colour on the tool buttons, the lane headers and the focused node card. The node card's stroke is 3px there instead of 2px. - Default look: both blocks are conditional, so the default look is unchanged.
- Baseline:
bun scripts/design-lint.ts --updatedropped themap.tsentry entirely, since all its counts are now 0.
To try it: open /map with reduced motion or forced colours turned on in your OS or browser, then hover cards and tab through them. For the screenshots, compare /map in light and dark with the default settings against the old branch. They should look identical.
Approved. The two media blocks are small, scoped to the map, and leave the default look untouched. The ratchet in test/design-lint.test.ts passes with map.ts now at zero for motion and forced colours, so deleting either block would fail it. That ratchet is the test for this change. I could not reach the preview from my sandbox, so I judged the served CSS from source only. Two things to do next: (1) look at /map once with reduced motion and once with forced colours on, and put the screenshots on the pull. (2) The baseline update also lowered input from 2 to 1 for src/web/style/components.ts, which this diff does not touch. Say in the pull where that came from.
/map now answers reduced motion and forced colours, and its
motionandforcedcounts indocs/design/baseline.jsonare 0 (were 3 and 1). I did not take the before/after screenshots the issue asks for: I can't run a browser here. I also did not runtsc, which failed on a read-only temp directory.bun scripts/design-lint.tspasses andbun test mappasses (28 tests). I added no new test for the new rules.prefers-reduced-motion: reduceblock inmapCssinsrc/web/pages/map.tssetstransition: noneon the card, title and lane caret.forced-colors: activeblock draws the focus outlines with theHighlightsystem colour on the tool buttons, the lane headers and the focused node card. The node card's stroke is 3px there instead of 2px.bun scripts/design-lint.ts --updatedropped themap.tsentry entirely, since all its counts are now 0.To try it: open
/mapwith reduced motion or forced colours turned on in your OS or browser, then hover cards and tab through them. For the screenshots, compare/mapin light and dark with the default settings against the old branch. They should look identical.Closes #3553