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

James_Lytle
Oct 27, 2021 1:50 AM UTC

With the general release of interactive components today, I was excited to give it a try. As you can imagine after trying the most basic useful thing I could imagine…I found my way to this support thread. Is it really true that a click on my button component can’t proceed to frame 2?? Is this possible?

Jean-Luc_LE_MOAL
Dec 10, 2021 10:10 AM UTC

Works perfect 👍

DesignedByPaul
Feb 22, 2022 11:21 PM UTC

Having this problem as well. Any workaround?

Milovanov_Dmitry
Feb 23, 2022 2:49 AM UTC

Thanks for this one! ❤️

Phil_V
Mar 7, 2022 8:09 PM UTC

I have this issue as well.

I completely agree. Is there a technical reason why this isn’t possible ?

mattaningram
New Participant
Apr 5, 2022 1:38 AM UTC

I completely agree. Is there a technical reason why this isn’t possible ?

Yeah, the way Figma does component variants the variant you are switching to on hover is considered a different item entirely, it is not just a modification of the original variant (the way it works in HTML/CSS for example). So when you click on a hovered item you are clicking on the hover variant, not the original one. This means the click action needs to go on the hover variant.

In general this is the way Figma does everything, styles and items aren’t actually changing, they are being swapped out or layered on top of each other. Smart animate can add a transition between these states, but the new state is still considered an entirely separate item/component.

Phil_V
Apr 5, 2022 7:28 AM UTC

I see.

Creating components then adding hover variants to them works well in the end. That was my solution to this issue 😁

Alex_Webb
Apr 6, 2022 3:17 PM UTC

Is there still no solution for this? Was wanting to have a dropdown menu item change color on click.

h.rude
h.rudeAuthor
Apr 7, 2022 6:31 AM UTC

I actually think that the scenario above should be doable with current figma functions. You’d need to create a “hover” and a “pressed” state in the variant. You should than have the color change in your prototypes.

Baptiste_Deroche
Apr 8, 2022 7:58 AM UTC

Thank you! Your clip helped me a lot.