Skip to main content
Question

Global variables controlling component variant state not working correctly in preview


Liam Tsang

I have a boolean variable that I want to use to toggle between two variants on a component. It is set up correctly and works as expected in the editing mode.
But when I add an interaction to a button that toggles the variable, it does not work on the variant. Weirdly, it does work for toggling the appearance of a text box. (I mapped the variable to a text box appearance value for testing). So the issue is not the interaction or mapping of the variable, it seems to be a bug specific to the variant in the preview. This is in Figma sites.

 

I have tried re-creating from scratch and the same issue occurs.

0 replies

Be the first to reply!

Reply


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