Skip to content

Design blue accent layout - #13

Merged
ace040686 merged 7 commits into
mainfrom
design-blue-accent-layout
Aug 18, 2026
Merged

ace040686 merged 7 commits into
mainfrom
design-blue-accent-layout

Conversation

@ace040686

Copy link
Copy Markdown
Collaborator

Related issue

Closes #

Summary

Test plan

  • [ ]
  • [ ]

Checklist

  • Added or updated tests covering this change
  • npm test passes locally in server/ (if backend changed)
  • npm test passes locally in web/ (if frontend changed)
  • Manually verified in the browser (if UI-facing)

… font sizes at 16px

- theme: replace --boston-gold-500/-700 with an updated
  --boston-blue-optimistic (#1871bd, was #288be4) and a matching
  darker hover shade; nothing referenced gold-700 already, and
  gold-500's last two uses (AppHeader) are updated below.
- AppHeader: active nav tab and the focus-visible outline use the new
  blue instead of gold; active-tab text and the "CITY OF BOSTON" tag
  both go to white rather than dark navy -- blue-on-navy only clears
  WCAG's 3:1 non-text contrast floor, not the 4.5:1 normal-text
  minimum a label needs.
- LocationMethodPicker: .methodGrid is a fixed single column
  (grid-template-columns: 1fr) instead of an auto-fit multi-column
  grid, per request.
- Floor every font-size in the app (CSS + the two Recharts axis
  tick={{ fontSize }} props) at 16px/1rem -- covered optional-tag
  labels, disclosure/radio text, method descriptions, dt/dd details,
  the dashboard's custom-range labels/live badge/metric captions, the
  install-prompt banner text, and the bar/line chart axis ticks.

Verified: typecheck clean, all 55 unit tests + 7 E2E tests pass, and
walked the report flow + dashboard live in the browser to confirm the
new color, single-column layout, and font sizes render as expected
with no console errors.
MapPinStep's draggable marker and ConfirmStep's static preview-map pin
both hardcoded the old gold (#FFB81C) directly rather than through the
--boston-gold-500 variable, so the earlier gold-removal pass (which
searched for the variable) missed them. Updated both to the new
optimistic blue (#1871bd).

Deliberately left HeatMap.tsx's two #ffb81c uses alone -- those are a
density-gradient color stop (navy -> blue -> gold -> orange -> red),
not a branding accent, and swapping that specific stop would make the
gradient non-monotonic.

Verified: typecheck clean, all 55 unit tests pass, and confirmed both
markers render in the new blue against the map with good visibility.
- LocationMethodPicker: give .methodIcon align-self: center so the
  icon sits centered above the (still left-aligned) label/description
  in each single-column card.

- MapPinStep, AddressSearchStep, ConfirmStep, and the inline GpsStep
  all had the same structural issue: floatingActionsSpacer and
  floatingActions were rendered *inside* each step's .stepSection
  card, even though floatingActions is position: fixed and doesn't
  need to be nested there to render correctly. The spacer's reserved
  height therefore showed up as literal dead space inside the card's
  white/bordered background -- most obviously on MapPinStep, where
  there's nothing else below the map to fill it.

  Moved both out to render as siblings after each step's </section>
  instead. Any reserved space still needed to keep the fixed bar from
  covering trailing content (confirmed still necessary on narrow
  mobile widths, where the bar wraps to two rows) now renders on the
  plain page background rather than stretching the card itself.

Verified: typecheck clean, all 55 unit tests + 7 E2E tests pass;
confirmed in the browser (desktop + mobile viewport) that the map
step's card now ends right at the map and the reserved space before
the floating bar no longer reads as a gap inside the card, and that
GPS/search/confirm steps still render and behave the same as before.
.methodLabel now matches .methodIcon's align-self: center, so the
title sits centered under the icon; .methodDescription stays
left-aligned below it.
- Add web/public/primary-logo.png (renamed from "primary logo.png" to
  drop the space for URL/tooling robustness) and precache it via the
  PWA's includeAssets.
- AppHeader: replace the plain-text "CITY OF BOSTON" tag with the
  actual logo image -- it already reads "City of Boston" on its own,
  so the separate text label was redundant alongside it.
- Header banner background: navy -> white.
- App name ("Double Parking Reporter"): now the optimistic blue.
- Non-selected nav tab: explicit #f2f2f2 background (was transparent,
  inheriting the old navy banner); text recolored to navy for contrast
  now that the surrounding banner is white/light gray rather than dark.
- Split the nav links' focus-visible outline color by state instead of
  sharing one: blue for the non-selected (light gray) tab, white for
  the selected (blue) tab -- a single shared color can't clear WCAG
  1.4.11's 3:1 non-text contrast minimum against both backgrounds at
  once, and the selected tab's background is now the same blue the
  outline used to be.
- Added a 1px bottom border to the header now that it's white, so it
  still reads as a distinct band against the page's own light-gray
  background.

Verified: typecheck clean, all 55 tests pass, confirmed computed
styles match exactly (active tab #1871bd/white, inactive #f2f2f2/navy,
header white/navy, title #1871bd) and confirmed the logo is copied
into the production build and precached by the service worker.
- "Submit anonymously" and "Report another car" (now "Report another
  vehicle") get a new .primaryActionBlue modifier (combined with
  .primaryAction, not a replacement) so they read as the flow's main
  call-to-action -- scoped to just these two rather than also
  recoloring MapPinStep's "Use this location" or the GPS step's "Try
  again", which share the same base class but weren't asked for.
- Confirm step's action bar gets a new .floatingActionsStacked
  modifier so "Change location method" sits under "Submit anonymously"
  instead of beside it; other steps' floating bars are unaffected.
- .radioOption gets min-height: 44px and its input goes from 18px to
  24px, so each blocked-type/vehicle-type option's effective tap
  target (the whole label, which already forwards clicks to the
  input) is at least 44x44 rather than just the small radio dot.
- SuccessStep: center the heading/body text and the button (new
  .successSection modifier), and rename the button to "Report another
  vehicle".
- Updated the E2E spec's button-name assertion to match.

Verified: typecheck clean, all 55 unit tests + 7 E2E tests pass;
confirmed live in the browser that the stacked actions, blue buttons,
centered success page, and the ~395x44 effective radio touch target
all render as expected with no console errors.
- MapPinStep's "Use this location" gets .primaryActionBlue too, and
  its floating actions get .floatingActionsStacked, matching the
  Confirm step's pattern -- "Choose a different method" now sits
  under the button instead of beside it.
- .methodDescription: centered like the icon/title above it (was
  left-aligned).
- .methodLabel: bumped to 1.1rem (was inheriting the same 1rem as the
  description) so the title reads as slightly more prominent than the
  description below it.

Verified: typecheck clean, all 55 tests pass, confirmed live in the
browser (blue enabled/disabled states on the pin step's button,
stacked actions, and the centered/sized method card text) with no
console errors.
@ace040686
ace040686 merged commit 7147978 into main Aug 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant