fix: bigger water-taxi boat marker + darker unread notification tint#449
Conversation
- Boat marker (createBoatIcon) scaled ~30%: 20x32 -> 26x42, anchor adjusted. - Unread notification row tint #f3f8ee -> #dcebc6 (was near-white, hard to see). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Code Review
This pull request updates the background color of unread notification items in App.css and increases the dimensions of the boat icon SVG and Leaflet marker configuration in Map.jsx. A review comment identifies an accessibility issue where the new background color results in insufficient contrast with the metadata text, and suggests darkening the text color specifically for unread notifications to meet WCAG 2.1 Level AA standards.
| .notification-item.unread { | ||
| background: #f3f8ee; | ||
| background: #dcebc6; | ||
| } |
There was a problem hiding this comment.
The new background color #dcebc6 for unread notifications combined with the meta text color #777 (defined in .notification-meta) results in a contrast ratio of approximately 3.6:1. This falls below the WCAG 2.1 Level AA minimum contrast requirement of 4.5:1 for normal text, which may make timestamps and other metadata difficult to read for users with visual impairments.
To resolve this while keeping the darker background, we can darken the meta text color specifically for unread notification items to #555 (which yields a contrast ratio of 6.0:1).
.notification-item.unread {
background: #dcebc6;
}
.notification-item.unread .notification-meta {
color: #555;
}…ication-halo # Conflicts: # frontend/src/components/Map.jsx
…urmand gate) Pre-existing violation from #448 surfaced by the merge; rename to readsRows. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Summary
Two small UI tweaks requested by Scott:
createBoatIconSVG 20×32 → 26×42,iconSize/iconAnchorscaled to match. Easier to spot on the map..notification-item.unreadbackground#f3f8ee→#dcebc6. The old near-white tint was hard to distinguish from read items against the white panel.Test plan