Skip to main content
Solved

Variables inside a Variant component?

  • November 17, 2023
  • 4 replies
  • 320 views

Evert_Martin

Hey,

I am having an issue. I am using the string variable to change an image upon hover.
This works, however when I make this into a component variant I lose the ability to attach my string variant to the image inside the component.

When I detach the component i have the ability again.
Any idea’s on how to solve this?

Thanks

Best answer by Nate_G

Alas, those variables are not available for nested variant instances 😦

https://help.figma.com/hc/en-us/articles/14506587589399-Use-variables-in-prototypes#:~:text=In%20Figma%2C%20variables%20are%20stored,color%2C%20or%20boolean%20value%20types.

This topic has been closed for replies.

4 replies

Nate_G
  • Power Member
  • 180 replies
  • Answer
  • November 17, 2023

Evert_Martin
  • Author
  • 2 replies
  • November 17, 2023

Oh I must have missed that note, my bad. Thanks for sharing!


Nate_G
  • Power Member
  • 180 replies
  • November 17, 2023

No worries, it is far down on the page, so very easy to miss.


Nate_G
  • Power Member
  • 180 replies
  • December 6, 2023

@Evert_Martin Looks like this has been fixed!

// Nested instances
Now, string variables can be bound to a nested instance’s variant properties, rather than only parent instances.