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

[Switcher] Tool tip sticks and does not go away after opening/closing #9521

Closed
Tracked by #9536
mjabbink opened this issue Jul 15, 2021 · 4 comments · Fixed by #9882
Closed
Tracked by #9536

[Switcher] Tool tip sticks and does not go away after opening/closing #9521

mjabbink opened this issue Jul 15, 2021 · 4 comments · Fixed by #9882
Labels
severity: 3 https://ibm.biz/carbon-severity type: bug 🐛

Comments

@mjabbink
Copy link

This issue has either come back or was never resolved from a previous issue.

ezgif com-gif-maker (1)

@vpicone vpicone self-assigned this Aug 23, 2021
@vpicone
Copy link
Contributor

vpicone commented Aug 23, 2021

This is an issue with the Carbon react library itself, I was able to reproduce in storybook. Going to transfer this issue there so we can figure out what the actual intended behavior is.

@vpicone vpicone transferred this issue from carbon-design-system/gatsby-theme-carbon Aug 23, 2021
@vpicone vpicone changed the title [mobile] Tool tip sticks and does not go away after opening/closing switcher [Switcher] Tool tip sticks and does not go away after opening/closing Aug 23, 2021
@tw15egan
Copy link
Collaborator

tw15egan commented Aug 24, 2021

Since the tooltip still has focus, it still shows the tooltip until another element receives focus / clicked away. Need someone from the a11y team to weigh in on the intended behavior here

@jnm2377
Copy link
Contributor

jnm2377 commented Sep 9, 2021

Screen Shot 2021-09-09 at 10 23 18 AM

Based on the discussion above, I think we consider this a bug. The expected behavior is that the tooltip should just show up on keyboard focus, not click. This way it will disappear when the item loses focus.

@tw15egan
Copy link
Collaborator

So we'll need to change the logic of icon-only Button and TooltipIcon (they share logic and a11y rules) to dismiss the tooltip when a click action has been taken

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity: 3 https://ibm.biz/carbon-severity type: bug 🐛
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants