Skip to content

feat: Style tweaks for the route schedule page headers - #3477

Open
joshlarson wants to merge 13 commits into
mainfrom
jdl/feat/schedule_page_header_style_tweaks
Open

feat: Style tweaks for the route schedule page headers#3477
joshlarson wants to merge 13 commits into
mainfrom
jdl/feat/schedule_page_header_style_tweaks

Conversation

@joshlarson

@joshlarson joshlarson commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Scope

Asana Ticket: 💈 Visual styling tweaks

Note

There was a tiny bit of scope-shifting, due to some tokens that are desired for this not being available in the design system, and thus not available in Figma.

  • For non-silver-line bus, the route pill and long-name text should all be in the h1, and should be 1.75rem (28px) on Desktop, and 1.5rem (24px) on Mobile. For all other modes, those font sizes should be the same as they currently are in prod, which is 2.5rem (40px) on Desktop, and 2rem (32px) on Mobile.
  • In prod, we currently remove the " Line" suffix for commuter rail routes, but we decided not to do that anymore.

I added these notes to the ticket as well.

Implementation

I did this in three five+ commits:

  1. Just the plain old CSS stuff - the font size and padding changes.
  2. Refactor to create a HEEx component file, currently just for the <h1>{route_header_text}</h1>, but I imagine that we may want to eventually use it for the whole schedule route header.
  3. Add the mode icon to the appropriate routes/modes.
  4. Refactor to make the bus route sign (the black-background-white-text pill with the bus route number) be the route header icon instead of the route header text. (This preserves the readout, however, since that is important)
  5. Move the bus route long-name (e.g. "Hull Ferry - Hingham Depot") into the <h1> title, and remove the <h2> description (this improves line-wrapping... see below, and aligns with the designs, which have both the route number and the long-name as <h1>'s).

... plus a few additional commits to fix tests, address design feedback, etc.

Screenshots

Subway
Screenshot 2026-09-04 at 5 46 49 PM

Commuter Rail
Screenshot 2026-09-08 at 1 25 30 PM

Silver Line Bus
Screenshot 2026-09-04 at 5 48 15 PM

Non-Silver Line Bus
Screenshot 2026-09-08 at 4 07 31 PM

Ferry
Screenshot 2026-09-04 at 5 52 36 PM

How to test

Look at the various route pages linked above, as well as any other route pages you can think of. Check bus routes with short route numbers, commuter rail routes with long names, bus routes with long long-names, etc. See how things look at different browser widths.

Note

👇 is the current line-wrapping behavior, compared to prod. Unlike below, I am happy with this.
Screenshot 2026-09-08 at 4 11 01 PM

Below is what it looked like before I added this change.


I'm not sure I love the wrapping behavior for bus routes with long names. It's not new, but the combination of the bottom-padding change and the fact that the bus route ID and the route description are the same font size now make the wrapping look more wrong (IMO). I'm interested in ideas for how to make that look better, and will likely explore those before merging.

Screenshot 2026-09-04 at 5 51 33 PM

@joshlarson joshlarson added the dev-green Deploy to dev-green label Sep 4, 2026
@joshlarson
joshlarson marked this pull request as ready for review September 8, 2026 16:51
@joshlarson
joshlarson requested a review from a team as a code owner September 8, 2026 16:51
@smartling-github-connector smartling-github-connector Bot added the Not Ready for Translation Remove this when the PR is approved to trigger a Smartling translation job label Sep 8, 2026
@joshlarson joshlarson removed the Not Ready for Translation Remove this when the PR is approved to trigger a Smartling translation job label Sep 8, 2026
@joshlarson
joshlarson marked this pull request as draft September 8, 2026 17:23
@joshlarson

Copy link
Copy Markdown
Contributor Author

Got a bit of design feedback, so pulling back to draft for a tiny bit in order to add that feedback in.

@joshlarson
joshlarson marked this pull request as ready for review September 8, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev-green Deploy to dev-green

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant