Skip to main content
h.rude
Apr 26, 2021 9:00 AM UTC

Allow Hover AND Click together

With the interactive components, a variant can now have a tooltip. But unfortunately hover and clickactions are still mutual exclusive.
I’m designing for a desktop application and having a tooltip per inputelement/button is crucial.

137 replies

Dominic
Active Member
Oct 31, 2023 3:08 PM UTC

@Peter_Bentley video solution above is best workaround if you also make sure:

  • component frame hugs the button only, not the hint/tooltip
  • Clip content is unchecked (for any and all parent frames that could hide the tooltip)
  • IMPORTANT: Autolayout Canvas stacking is adjusted accordingly for the autolayout frame holding your button(s). Most likely it will need to be set to First on top

Following those points will address @Bart_Van_Hecke and @Mathias_Mouchard’s issues.

Nov 13, 2023 3:50 AM UTC

Workaround that works ok…
Assuming your button has two variants, add these prototye interactions:
Variant 1: While hovering → change to Variant 2
Variant 2: While pressing → change to Variant 1
Variant 1: Mouse up → do your desired click action

This does work. It works because mouse events happen in this order:
Mouse enter → Mouse hovering → Mouse down → Mouse pressing → Mouse up → Click → (repeat from Mouse hovering) → Mouse leave

Dan15
Nov 13, 2023 1:50 PM UTC

Can designers please stop suggesting half-cocked “workarounds” so that Figma actually has incentive to fix something basic? Thanks.

Nov 14, 2023 9:37 PM UTC

The need is basically allowing an “AND”.

“If hovering AND click THEN ______”. This is how browsers work. I hover over a button and the state changes, then I click and it performs some action.

It is basically allowing 2 actions to trigger at the same time.

j.au
Nov 16, 2023 6:00 AM UTC

For all humanity please make this happen. 🙏🏽

Nov 26, 2023 5:46 PM UTC

I’m trying to implement a hover effect to show a tooltip on an icon then also be able to click the same icon to navigate to another screen. So far this has been impossible considering that it’s a real-world interaction that should be available in Figma. Any help is appreciated while we wait for Figma to provide an update to fix this BUG.

Przemek3
Active Member
Nov 28, 2023 1:57 PM UTC

This topic started May 2021 … ⏳ topic still open,
360 votes…
Maybe it’s time for “Little Big Update” that’s really needed?

Sam_Reynolds
New Member
Nov 29, 2023 7:25 PM UTC

One way to handle this (conceptually) is to have a priority order. In this example Hover then Click. Hover action should be executed first then the Click action. As pointed out earlier, Figma currently treats any overlay as the active layer, so no action can be executed on the layer underneath (even if it’s visible). This is probably a core tenet of how Figma works, but it’s a huge inconvenience. A hover then click action is a fundamental interaction and should be better supported. The workaround is to create a variant for the “on hover” action and add the “click action” to the variant. Loki would not be pleased. 😉

Dec 3, 2023 11:46 AM UTC

Guys, maybe, just maybe I’ve figured it out! I was creating a school website and wanted to give both actions (hover and click) to the same frame! What I did was, I selected the frame which I wanted to give both the triggers inside my page. Made a duplicate to give it a hover action outside of my page! You guys know how the hover action works right? Then, I gave the click trigger to the frame which is the hover one (the hover state of the button). And it turned out perfectly! You have to give the click trigger to the hover state!!! Understood?

Let me know if this was helpful

Dec 3, 2023 11:48 AM UTC

I would’ve shown the video but forum isn’t allowing me for some reason!