Skip to main content
Question

Click to change state, then click to open overlay

  • August 11, 2022
  • 4 replies
  • 4336 views

Adrian19

New figma user here, and with basic knowledge of components . I have a click interaction embedded in a component that changes the variant. I would like to be able to click again to open a related overlay on the side of the frame I am currently making. When I add another click to open an overlay, it overrides the state change click. This seems to be by design. How should I go about achieving this?

This topic has been closed for comments

4 replies

Avokadomos
  • Active Member
  • 377 replies
  • August 11, 2022

A frame can only have one of the same type of interaction. You can either add the second interaction to the variant (but then you don’t have a click interaction to go back to the default variant), or you can create another element inside the component that is used specifically for this purpose.


Adrian19
  • Author
  • 4 replies
  • August 11, 2022

Fair enough. I appreciate your breakdown. I just used another element closeby to launch the overlay.


tank666
  • 4863 replies
  • August 11, 2022

  • 0 replies
  • September 10, 2022

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings