Skip to content
SprecherEast
Issue 743

fix: Legend numbers should look like the numbers on the diagram

Back to our plan
Done
bugfrontendstylingpriority: low

Problem

In short: the numbered circles in the legend under the I-94 diagram don't look like the numbered circles drawn on the diagram. The owner asked (2026-11-06, text session, after #710) that they look the same, even if the contrast ends up poor.

Measured on the live post: the diagram's circles are a fixed orange with a thick white ring and a large bold white number. The legend's circles use the theme accent, which turns a lighter orange in dark mode, have a thinner ring and a smaller number.

Proposed fix

  • Add one theme token, diagram-marker, with the orange drawn into the diagram. It is the same in light and dark mode, because the photo is.
  • The legend's NumberMarker uses it, with a ring and number in proportion to the diagram's circles (ring about 8% of the width, number about a third of the height).
  • No other legend, chart or colour changes. The low contrast of white on this orange stays tracked in #711.

Acceptance criteria

  • Not done: The legend circle is the same orange in light and dark mode, as the diagram's circles.
  • Not done: The ring and number are in the same proportions as on the diagram, checked side by side at the widest and narrowest widths.
  • Not done: A test fails on the old classes; the theme test pins the token (light only, no dark override).
  • Not done: Dark mode checked; no row of legend items is knocked out of line by the larger circle.

Files likely touched

src/platform/ui/Legend.tsx, its test and snapshot, src/platform/theme/tokens.ts, src/platform/theme/tailwind.css, src/themes/default/theme.css, src/platform/theme/themes.test.ts, docs/ui/component-set.md.

Must not touch

Any other theme token value, the chart legend (marker="swatch").

Area

frontend, styling

Priority

low


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab