Skip to main content
Pedro_Vinagre
September 26, 2024
Question

Keep image when changing variant

  • September 26, 2024
  • 5 replies
  • 797 views

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
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
September 26, 2024

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

Pedro_Vinagre
September 26, 2024

It does not work.
Here’s a link:

Figma – 2 Aug 24
Nellya
Power Member
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
September 26, 2024

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 🙂