Autocomplete[a11y]: Update focus order for search bar on homepage, stops summary, retail sales location tool#3093
Open
Autocomplete[a11y]: Update focus order for search bar on homepage, stops summary, retail sales location tool#3093
Conversation
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: ♿ 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