CreativeBulma / bulma-tooltip

Display a tooltip attached to any kind of element, in different position.
MIT License
76 stars 40 forks source link

Tooltip remains visible after clicking a button #1

Closed p8952 closed 4 years ago

p8952 commented 4 years ago

When I add a tooltip to a button, the tooltip remains shown after the button is clicked, even when the mouse is moved off the button.

It remains visible until you click somewhere else and the button becomes unfocused.

You can see this happening on the demo page: https://demo.creativebulma.net/components/tooltip/1.0/get-started/

screenshot-demo creativebulma net-2020 03 28-13_45_52

CreativeBulma commented 4 years ago

Hi @p8952,

thanks for reporting this. This behavior is due to the fact we are using focus pseudo class to display the tooltip for accessibility reason.

I'm wondering if it's a good idea to display tooltip on focus. I'll have to run some test to see if removing display on focus does not break the system on mobile.