-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
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
Add shift-tab keyboard support for dialogs (modal & Offcanvas components) #33865
Conversation
72e4d96
to
fd2086b
Compare
b6b8f06
to
7e7a0a5
Compare
@RyanBerliner can you rebase your MR please? |
7e7a0a5
to
1566098
Compare
@GeoSot I've rebased. It looks like #33327 introduced a dependency of |
Yes, seems right as it has a foreign dependency. Can you handle it ? (maybe /cc @rohit2sharma95 , @alpadev |
I hadn't realized how dependent other utility functions were on |
Seems good to my eyes. CC: @twbs/js-review |
@RyanBerliner , can we update this MR (and resolve the suggestion)? |
@patrickhlauke: LGTY? |
FYI This doesn't pass on BrowserStack + there are some warnings: https://github.com/twbs/bootstrap/runs/3125887723 We should get those sorted before landing this :) |
@XhmikosR the warnings seem simple enough, I can handle them. The failed tests on the other hand seem to be related to differences in how the |
I will support the 'drop' case, for one more time. However try to leave a comment about it, for future reference |
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.
Testing the behaviour, this now seems to behave correctly. Not looked at the code side, but from a functional point of view, this looks good to me
@XhmikosR I'm not sure I have the permission to re-run browserstack tests, however I believe everything should be resolved. If there are still warnings or errors that you'd like me to revisit lmk. |
Co-authored-by: GeoSot <geo.sotis@gmail.com>
All good @RyanBerliner thanks! Also, thanks to @GeoSot everything seems to be good to go. |
…nts) (twbs#33865) * consolidate dialog focus trap logic * add shift-tab support to focustrap * remove redundant null check of trap element Co-authored-by: GeoSot <geo.sotis@gmail.com> * remove area support forom focusableChildren * fix no expectations warning in focustrap tests Co-authored-by: GeoSot <geo.sotis@gmail.com> Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Fixes #28481
There are a couple issues (primarily #33804) that aim to fix inconsistent screen reader navigation or announcements. The work I've done here only concerns tab navigation.
TODO:
focusableChildren
selectorisVisible
utility function (tracking isVisible utility function returning false positives #33914)Preview Modal
Preview Offcanvas