Skip to main content
Question

"While pressing" variant interaction now breaking


Ash_Guillaume

I have a button and was testing press interactions plus manipulating a variable but when I press on the button and release, the pressed state of the button remains. Is anyone else having this issue?

Setup:

  • Button component has a variant interaction set to change to the pressed state “While pressing”
  • Adding an “On click” interaction to set a width variable to add 5 breaks the variant interaction

This topic has been closed for comments

4 replies

  • 3 replies
  • July 3, 2023

I’m having the same issues and trying various press types like but can’t figure it out. Did you find a solution by chance?


Ash_Guillaume

Yes! Figma got back to me and you have to add the interaction to the pressing action. I didn’t realize this but additional actions can be added to a component instance that already has variant actions set from its main component.


  • 3 replies
  • July 6, 2023

Thanks for getting back to me! I literally just figured it out this am by complete accident. Seemingly simple, but my brain kept on wanting me to add another press action instead of just setting a variable to an existing action.


  • 0 replies
  • August 5, 2023

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