feat: Style tweaks for the route schedule page headers - #3477
Open
joshlarson wants to merge 13 commits into
Open
feat: Style tweaks for the route schedule page headers#3477joshlarson wants to merge 13 commits into
joshlarson wants to merge 13 commits into
Conversation
joshlarson
marked this pull request as draft
September 8, 2026 17:23
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
marked this pull request as ready for review
September 8, 2026 18:11
joshlarson
enabled auto-merge (squash)
September 8, 2026 20:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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." 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
threefive+ commits:<h1>{route_header_text}</h1>, but I imagine that we may want to eventually use it for the whole schedule route header.<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

Commuter Rail

Silver Line Bus

Non-Silver Line Bus

Ferry

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.

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.