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

fix(a11y): fix tab order reset in the header #9851

Merged
merged 1 commit into from
Oct 24, 2023
Merged

Conversation

fiji-flo
Copy link
Contributor

Summary

Fixes tabbing across the search box.

Problem

When tabbing through the header reaching the search input and pressing tab again will reset the focus to the html document.

This happened because the next item would be the cancel input button. Which will be removed via display one and then we start from the the beginning.

Solution

Keep the search box expanding when the parent has focus within.


How did you test this change?

Locally.

When tabbing through the header reaching the search input and
pressing tab again will reset the focus to the html document.

This happened because the next item would be the cancel input
button. Which will be removed via display one and then we start
from the the beginning.
@fiji-flo fiji-flo requested review from caugner and LeoMcA October 19, 2023 11:08
@caugner caugner removed the request for review from LeoMcA October 19, 2023 11:25
@caugner caugner added the ♿ a11y An MDN Web Docs accessible by everyone label Oct 19, 2023
Copy link
Contributor

@caugner caugner left a comment

Choose a reason for hiding this comment

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

Reproduce the issue on prod and verified the fix locally.

@caugner caugner changed the title fix(tab): fix tab order reset in the header fix(a11y): fix tab order reset in the header Oct 19, 2023
@fiji-flo fiji-flo merged commit b12f554 into main Oct 24, 2023
@fiji-flo fiji-flo deleted the fix-search-tab-order branch October 24, 2023 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
♿ a11y An MDN Web Docs accessible by everyone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants