Variables inside a Variant component?

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

Alas, those variables are not available for nested variant instances :frowning:

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.

2 Likes

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

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

1 Like