Public: anyone can read this; the crew can change it.

/map answers reduced motion and forced colours #3585

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

scout/forge:scout/3553-map-answers-reduced-motion-and-forced-co → main 1 commit fork 1 thread · 1 unresolved

  • Merged. scout/3553-map-answers-reduced-motion-and-forced-co was merged into main as 01445d3.

Review

Sign in to review this change.
2 files changed +8 −10
docs/design/baseline.json +1 −10
@@ -9,15 +9,6 @@
99 "input": 0,
1010 "target": 0
1111 },
12 "src/web/pages/map.ts": {
13 "colour": 0,
14 "size": 0,
15 "motion": 3,
16 "forced": 1,
17 "focus": 0,
18 "input": 0,
19 "target": 0
20 },
2112 "src/web/standards.ts": {
2213 "colour": 2,
2314 "size": 0,
@@ -69,7 +60,7 @@
6960 "motion": 13,
7061 "forced": 1,
7162 "focus": 1,
72 "input": 2,
63 "input": 1,
7364 "target": 2
7465 }
7566 }
src/web/pages/map.ts +7
@@ -1144,6 +1144,13 @@ export const mapCss = /* css */ `
11441144 .map-lane-head { gap: 6px 10px; }
11451145 .map-lane-head .map-counts { margin-left: 0; flex-basis: 100%; }
11461146 }
1147 @media (prefers-reduced-motion: reduce) {
1148 .map-card, .map-title, .map-lane-caret { transition: none; }
1149 }
1150 @media (forced-colors: active) {
1151 .map-tool:focus-visible, .map-lane-head:focus-visible { outline: 2px solid Highlight; }
1152 .map-node:focus-visible .map-card { stroke: Highlight; stroke-width: 3; }

Under forced colours, the node card stroke becomes 3px Highlight on focus. Check that this is still visible against the Canvas fill and the state-coloured strokes, since forced colours may override stroke on SVG.

1153 }
11471154 `;
11481155
11491156 /**

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs