Skip to content

Add screenreader text for +1#3016

Open
lvachon1 wants to merge 1 commit intomainfrom
lev/fix/sf/screen_reader_last_train_tomorrow
Open

Add screenreader text for +1#3016
lvachon1 wants to merge 1 commit intomainfrom
lev/fix/sf/screen_reader_last_train_tomorrow

Conversation

@lvachon1
Copy link
Contributor

Scope

Asana Ticket: 📅🔎 Add screenreader text for +1

When spoken aloud by a screen reading device "12:49AM plus one" sounds rather ambiguous. This work replaces the screen reader content for that section so it reads "12:49AM the next morning" which is much less ambiguous.

Implementation

Added alternative text for screen readers indicating that the last train of the service day actually departs early tomorrow morning.
Added aria attributes necessary to hide the existing +1 from screen readers, and hide the a11y text from graphical browsers

Screenshots

Graphical version (unchanged)
Screenshot 2026-03-16 at 12 30 00 PM

A11y version (notice "the next morning" instead of "+1")
Screenshot 2026-03-16 at 12 29 51 PM

How to test

Visit the new SF on any line that runs after midnight.

http://localhost:4001/departures/?route_id=Red&direction_id=0&stop_id=place-dwnxg

I like to use Aria DevTools to work with a11y layers.

…ain of the "day" departs early tomorrow morning
@lvachon1 lvachon1 requested a review from a team as a code owner March 16, 2026 16:39
@lvachon1 lvachon1 requested a review from thecristen March 16, 2026 16:39
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