Love Figma. Stroke doesnāt work in Europe. Effects should be able to reference to variable colors. Keep it up!
If you have it in a file separate from the design it doesnāt work. Unless you have all the options checked.
Effects can reference colors as well with this update. For stroke, youāll need to right click on the stroke width field to apply the variable.
Nested Instance Variant Binding : now, string variables can be bound to a nested instanceās variant properties, rather than only parent instances. What is the use case for this? What it looks like in the video is what weāve been able to do since variables dropped, attach a variable to the property of an instance.
Cool - thanks for the hint. I was expecting it to be implemented similar with other fields. About the color: I was also looking for the variable indicator on color input.
@dvaliao Thanks for the update!
I ran into an issue with the
Nested Instance Variant Binding
In the Switch component variables & conditionals are
NOT assigned on the componentās variants, but on the noodles of the instance variants since instances of this switch comp are to be used to
trigger different elements in different contexts.
E.g. a switch in a filter bar above a list shows/hides specific list items. Another switch triggers in a Profile page turns an option on/off.
The Issue
- I assign a āVisibleā var to the gray bar.
- On click on the switchās āHover onā state the gray bar should disappear. So, on its MouseUp event I set the āVisibleā var to āfalseā.
- I click the switch, and lo and behold, the gray bar disappears. Success (for now)
- Since the āHover onā state should NOT be the default, I change the switchās state back to its āOnā state.
- When hovering the switch itāll logically change to its āHover onā state. Clicking it Iād expect the gray bar to disappear, BUUUTā¦ Nopeā¦ It completely ignores the set var command 😫
In summary,
unless I clone the āswitch comboā comp for each and every different context this var assigning to variant instances I completly pointless and defeats reusability aspect of comps+vars.
If Iām doing something wrong, please let me know, Iād be eternally grateful 🙏🙇♂️t3:
I am looking forward to the possibility of adding variables to the font size ✋