Skip to content

Autocomplete[a11y]: Update focus order for search bar on homepage, stops summary, retail sales location tool#3093

Open
lvachon1 wants to merge 5 commits intomainfrom
lev/a11y/search_tab_order
Open

Autocomplete[a11y]: Update focus order for search bar on homepage, stops summary, retail sales location tool#3093
lvachon1 wants to merge 5 commits intomainfrom
lev/a11y/search_tab_order

Conversation

@lvachon1
Copy link
Copy Markdown
Contributor

@lvachon1 lvachon1 commented Apr 8, 2026

Scope

Asana Ticket: ♿ Update focus order for search bar on homepage, stops summary, retail sales location tool

Implementation

Added some JS to rearrange the items in the search bar to reflect the way they are arranged visually. We use CSS to rearrange things, but that doesn't affect tab order. This updates the HTML so that tab order behaves as expected.

Fun fact: appendChild() will not create duplicates, it will move the element instead

Screenshots

Main header and stop overview autocomplete tab order:

Screen.Recording.2026-04-08.at.1.55.46.PM.mov

Retail Sales Locations autocomplete tab order

Screen.Recording.2026-04-08.at.1.56.28.PM.mov

How to test

Check the autocomplete tab order in the main header and on the following pages, ensure it aligns with the visuals:

Compare and contrast with dev/prod where the search icon is focused first among the autocomplete elements despite being last in the layout.

http://localhost:4001/stops/subway
http://localhost:4001/fares/retail-sales-locations

@lvachon1 lvachon1 requested a review from a team as a code owner April 8, 2026 18:02
@lvachon1 lvachon1 requested a review from thecristen April 8, 2026 18:02
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