Skip to content

SF2.0[fix]: Improve funky focus outline, fix gap#3077

Merged
lvachon1 merged 3 commits intomainfrom
lev/fix/sf/funky_focus
Apr 8, 2026
Merged

SF2.0[fix]: Improve funky focus outline, fix gap#3077
lvachon1 merged 3 commits intomainfrom
lev/fix/sf/funky_focus

Conversation

@lvachon1
Copy link
Copy Markdown
Contributor

@lvachon1 lvachon1 commented Apr 2, 2026

Scope

Asana Ticket: 📅🔎 Fix funky focus outline

Implementation

Adjusted schedule finder logic so it wouldn't render an empty additional_info section if additional_info was an empty list.
Adjusted lined_list_item CSS to overlap the line a little bit less so that the focus outline isn't as wonky. Unfortunately, getting rid of the focus outline wonk entirely brings back the little gap issue.

Screenshots

🚇 Subway

Screenshot 2026-04-02 at 11 32 24 AM Screenshot 2026-04-02 at 11 32 17 AM

🚂 Commuter Rail

Screenshot 2026-04-02 at 11 30 59 AM Screenshot 2026-04-02 at 11 30 49 AM

🚌 Bus

Screenshot 2026-04-02 at 11 30 31 AM Screenshot 2026-04-02 at 11 30 26 AM

How to test

http://localhost:4001/departures/?route_id=71&direction_id=1&stop_id=2052

Check out various lines and modes and observe that the focus outlines look much better than before.


… info section if additional info was an empty list. Adjusted lined list item CSS to overlap the line a little bit less so that the focus outline isn't as wonky. Unfortunately, getting rid of the focus outline wonk entirely brings back the little gap issue.
@lvachon1 lvachon1 requested a review from a team as a code owner April 2, 2026 15:46
@lvachon1 lvachon1 requested a review from joshlarson April 2, 2026 15:46
Comment thread lib/dotcom_web/live/schedule_finder_live.ex
@lvachon1 lvachon1 changed the title Fix funky focus outline SF2.0[fix]: Fix funky focus outline Apr 2, 2026
Comment thread lib/dotcom_web/live/schedule_finder_live.ex
Comment thread lib/dotcom_web/components/route_components.ex Outdated
Copy link
Copy Markdown
Contributor

@joshlarson joshlarson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few thoughts on px versus rem, and some historical context for my initial (probably not very good) attempt to align things!

@lvachon1 lvachon1 requested a review from joshlarson April 3, 2026 14:47
Copy link
Copy Markdown
Contributor

@joshlarson joshlarson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually fixes the gap issue and doesn't fix the funky focus outline, so it's probably worth updating the PR description.

But it does fix the gap issue (at least for all font sizes I tested), so IMO it's worth getting out there!

@lvachon1 lvachon1 changed the title SF2.0[fix]: Fix funky focus outline SF2.0[fix]: Improve funky focus outline, fix gap Apr 8, 2026
@lvachon1 lvachon1 merged commit a999528 into main Apr 8, 2026
43 of 45 checks passed
@lvachon1 lvachon1 deleted the lev/fix/sf/funky_focus branch April 8, 2026 13:21
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.

2 participants