Skip to main content
Question

Keep image when changing variant

  • September 26, 2024
  • 5 replies
  • 234 views

Pedro_Vinagre

How can I keep the same image when changing variants?
I have a responsive gallery component that reset images (back to the original component image) when choosing a different variant.

This topic has been closed for replies.

5 replies

Luke-Itineris
  • Active Member
  • 129 replies
  • September 26, 2024

This was happening to us, we found out it was a bug in the design system. Can you share a file at all?


Nellya
  • Power Member
  • 569 replies
  • September 26, 2024

Make sure that the name of layer of image are same in all variants


Pedro_Vinagre

It does not work.
Here’s a link:

Figma – 2 Aug 24

Nellya
  • Power Member
  • 569 replies
  • September 26, 2024

Seems like you used the different images in variants (they looks identical, but they probably wasn’t copy of one image, but was loaded separately in each one, so Figma identifies them as different).

I just copied image from first variant and pasted to replace it in others and it works fine now.


Pedro_Vinagre

That works!
But it doesn’t make sense 😃 it should work if the layers are exactly the same!
But you’ve manage to find a work around… Thanks 🙂


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