-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(Tooltip): add focus trap behavior and fix focus management logic #6458
fix(Tooltip): add focus trap behavior and fix focus management logic #6458
Conversation
3957aa7
to
62a5688
Compare
Deploy preview for carbon-elements ready! Built with commit 3957aa7 |
Deploy preview for carbon-elements ready! Built with commit cd2d3a7 |
Deploy preview for carbon-components-react ready! Built with commit 3957aa7 https://deploy-preview-6458--carbon-components-react.netlify.app |
Deploy preview for carbon-components-react ready! Built with commit cd2d3a7 https://deploy-preview-6458--carbon-components-react.netlify.app |
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.
Focus working as expected 👍 ✅
5d153a5
to
cd2d3a7
Compare
Closes #6443
Refs #1264 (comment)
Refs #4414
Refs #5489
This PR implements optional focus trapping in the interactive tooltip and correctly places focus back on the trigger element after the tooltip is dismissed.
Changelog
Changed
wrapFocus
props to be more genericTesting / Reviewing
Confirm that focus and blur behaves as expected within the interactive tooltip component as well as between interactive siblings to the tooltip. Ensure that focus management remains the same in other
wrapFocus
orFloatingMenu
components like Modal, ComposedModal, and OverflowMenu