-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Improve focus with portals #4245
Improve focus with portals #4245
Conversation
Using portals, tab moves focus out of datepicker but leaves portal open. Without portal, user can still enter the picker with arrow keys. Tabbing through the datepicker should not land the user into a tab trap. closes Hacker0x01#3522
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ This pull request was sent to the PullRequest network.
@Sam-Apostel you can click here to see the review status or cancel the code review job.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PullRequest Breakdown
Reviewable lines of change
+ 18
- 18
100% JavaScript
Type of change
Minor Update - These changes appear to be a minor update to existing functionality and features.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The majority of the chnages is prettier updates, that said the one functional change looks good and no issues are noted.
Reviewed with ❤️ by PullRequest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This appears to be a straightforward change that matches the PR description. Nice work!
Reviewed with ❤️ by PullRequest
This PR changes focus behaviour to fix portal usage.
Using portals, tab moves focus out of datepicker but leaves portal open.
A check was removed that only closed the portal on Shift + Tab, and replaced with just Tab
Without portal, user can still enter the picker with arrow keys.
Tabbing through a form with a datepicker should not land the user into a tab loop/trap.
closes #3522