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

[Tooltip] remains open when focus moves to other elements on the page #9469

Closed
1 of 2 tasks
kevinsperrine opened this issue Aug 11, 2021 · 4 comments · Fixed by #9545
Closed
1 of 2 tasks

[Tooltip] remains open when focus moves to other elements on the page #9469

kevinsperrine opened this issue Aug 11, 2021 · 4 comments · Fixed by #9545

Comments

@kevinsperrine
Copy link
Contributor

What package(s) are you using?

  • carbon-components
  • carbon-components-react

Detailed description

Describe in detail the issue you're having.

If you have multiple tooltips on a page and you tab through them all tooltips will stay open after they've lost focus. Often, they overlap blocking one another.

Is this issue related to a specific component?

Tooltip

What did you expect to happen? What happened instead? What would you like to
see changed?

I would expect the tooltip to close when it no longer has focus.

What browser are you working in?

Chrome 92.0.4515.131

What version of the Carbon Design System are you using?

10.41.0/7.41.0

What offering/product do you work on? Any pressing ship or release dates we
should be aware of?

Steps to reproduce the issue

Minimal repo sandbox

Additional information

123816423-4d2ec600-d8c5-11eb-969c-82ef563a2b19

  • Notes

Also tracking in the iot repo here: carbon-design-system/carbon-addons-iot-react#2437

@andreancardona
Copy link
Contributor

@kevinsperrine Hello!

Thank you for opening up this issue. I can't seem to reproduce the issue. Let me know if I'm not following your directions properly. Thanks! Happy to keep looking into it.

Screen.Recording.2021-08-23.at.2.48.14.PM.mov

@kevinsperrine
Copy link
Contributor Author

@andreancardona You're clicking the tooltip in your video. This issue is about tab-navigating to them for a11y purposes. If you click once in the example window and then press the tab button once to change focus to the first tooltip and then hit tab again to change focus to the second tooltip both will stay open.
tooltip-focus

@andreancardona
Copy link
Contributor

@kevinsperrine so sorry I misunderstood the tabbing I'll look into it :)

@kevinsperrine
Copy link
Contributor Author

Thanks, @andreancardona!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants