White numbers on the orange legend markers are below the contrast rule
Back to our planProblem
In plain words: the numbers in the diagram key (and the numbered markers drawn on the photo) are white on the site's orange. That pairing is about 2.1 to 2.4 to 1 contrast, below the 4.5 to 1 the site's accessibility rule asks for. It was chosen on purpose on #658 (the owner wanted the legend's numbers to match the photo's markers), so this needs his decision before anyone changes it.
Proposed fix
Offer a darker orange for the marker fill (on the photo and in the legend together, so they still match) that gives white numbers at least 4.5 to 1 in light and dark, or keep the current pairing and record it as an accepted exception. The legend side is one class in src/platform/ui/Legend.tsx (NumberMarker). The photo's markers are in the image itself, so changing them means re-annotating the picture.
Recommendation: darken the orange for both, if the photo can be re-exported cheaply; otherwise keep it and record the exception.
Acceptance criteria
- Not done: The owner has chosen: darker orange for both, or an accepted exception.
- Not done: If darker: the marker fill passes 4.5 to 1 with white in light and dark (the theme contract test covers the pair), and legend and photo still match.
Area
frontend
Priority
priority: low
Generated by Claude Code, opens in a new tab