Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Focus breadcrumb on route change #5166

Merged
merged 3 commits into from
May 31, 2021

Conversation

pascalwengerter
Copy link
Contributor

Description

Focus current active breadcrumb on route change and announce contents of current folder to screenreader

@pascalwengerter pascalwengerter requested a review from kulmann May 28, 2021 10:40
Copy link
Member

@kulmann kulmann left a comment

Choose a reason for hiding this comment

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

Found one issue that I didn't think about before. This now steals the focus away from the nav directly after clicking in the left sidebar. As far as I understand this behaviour is only supposed to happen upon navigating within the file list or through the breadcrumbs.

@pascalwengerter pascalwengerter force-pushed the 28052021_focus-and-announce-breadcrumbs branch from df03cdc to 831752a Compare May 28, 2021 13:12
@pascalwengerter pascalwengerter requested a review from kulmann May 28, 2021 13:13
@pascalwengerter
Copy link
Contributor Author

Found one issue that I didn't think about before. This now steals the focus away from the nav directly after clicking in the left sidebar. As far as I understand this behaviour is only supposed to happen upon navigating within the file list or through the breadcrumbs.

Tried preventing it with what we discussed, checking if we're staying within the same route and only setting the focus on the last breadcrumb item if that's the case

@pascalwengerter pascalwengerter force-pushed the 28052021_focus-and-announce-breadcrumbs branch from 831752a to a833900 Compare May 28, 2021 13:43
@pascalwengerter pascalwengerter force-pushed the 28052021_focus-and-announce-breadcrumbs branch from a833900 to 365f650 Compare May 31, 2021 14:36
@pascalwengerter pascalwengerter force-pushed the 28052021_focus-and-announce-breadcrumbs branch from 365f650 to dcbf119 Compare May 31, 2021 16:05
@pascalwengerter pascalwengerter requested a review from kulmann May 31, 2021 16:05
Copy link
Member

@kulmann kulmann left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@kulmann kulmann merged commit cda4228 into a11y-swarming May 31, 2021
@delete-merged-branch delete-merged-branch bot deleted the 28052021_focus-and-announce-breadcrumbs branch May 31, 2021 22:16
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