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 on focus #12

Open
GrigorM opened this issue Dec 27, 2017 · 1 comment
Open

Tooltip on focus #12

GrigorM opened this issue Dec 27, 2017 · 1 comment

Comments

@GrigorM
Copy link

GrigorM commented Dec 27, 2017

The tooltip is shown on hover, but remains active on focus too. So when clicking a button with tooltip, the tooltip will remain active until i click somewhere else. I think the default behaviour should be to remove the tooltip after hovering out, and leave the current behaviour as optional, to be activated via a custom attribute.

@shanehoban
Copy link

shanehoban commented Mar 8, 2022

This is an old issue but here is a kind of workaround that does the job for me:

[aria-label][role~="tooltip"]:not(:hover):focus::before,
[aria-label][role~="tooltip"]:not(:hover):focus::after {
  opacity: 0;
}

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

No branches or pull requests

2 participants