the-pudding / sleep-training

MIT License
2 stars 2 forks source link

Make the tooltip clickable #4

Closed tomvaillant closed 4 months ago

tomvaillant commented 4 months ago

The button in the Tooltip component is currently not clickable, I'm not sure how to fix that.

matthewfdaniels commented 4 months ago

you can make the tooltip clickable by add this to the css

image

but the problem is that you can't access the tooltip because it fades away when you try to click it. i removed the mouseout event and it's then clickable (after you turn on pointer events)

image

but this opens up more weird UX things, where you you need to get to the tooltip to click it, but you also need it to go away when you want it to. I think I would consider the role you want the tooltips to play and how people should interact with them.

tomvaillant commented 4 months ago

Thanks Matt that's a good point, maybe no need to have a redirect to the source since the data will be publicly accessible.