Skip to main content
Question

Variables don't apply or update in swapped instances anymore

  • August 27, 2024
  • 4 replies
  • 303 views

Alx

I’m working on a design system and encountered a bug thats slowing me 10x.

To begin with, when I swap a component with a variable property within a larger component/variant instance and then change the variable color in the parent component, the color doesn’t update in the overridden instances with swapped components. (Check out the video example)

For example in this case, when I duplicate the [Documentation/Feature Icon] component, which has an icon swap property, and swap the icon in the duplicated instance, the color gets inherited from the parent component. But when I change the color in the parent component, the color of the swapped icons in the instances remains unchanged.

Is’nt this a common practice (or at least used to), is anyone experiencing this?
I just noticed, this issue is happening across all my projects, though it worked fine last week.
Any ideas on how to fix it?

The worst part is imagine you’re designing atomic elements and creating pages using nested component instances cooperating swaps . After many iterations, you want to assign a new color to the parent component’s icon with swap property, and the new color does not apply accordingly to the instances with already swapped icon components.

This topic has been closed for replies.

4 replies

y_toku
Figmate
  • Community Support
  • 2518 replies
  • August 28, 2024

Hi there,

Thanks for reaching out. I’m checking with our internal team. I will get back to you when I have anything I can share with you.

Thanks for your patience.
Toku


y_toku
Figmate
  • Community Support
  • 2518 replies
  • August 29, 2024

Hi @Alx,m

Thank you for waiting. I’ve checked with our internal team, and the behavior of the video recording appears to be as expected. However, it might depend on factors such as layer hierarchy or naming conventions. It is curious that it worked differently last week. If your setup is the same as last week, where the swapped instances change color when the original component’s variable color is changed, could you please share the file link with access to support-share@figma.com? This won’t affect your billing. We hope to investigate this further.

Thanks,
Toku


Alx
  • Author
  • 35 replies
  • August 29, 2024

Hi @y_toku

Thank you for responding, however after looking into forum I found another thread about the same issue, and I think there is misunderstanding since there are others having same issue here :

and your colleague here said that “It is bug that our engineers are aware”

So right now I am really confused how it was a common practice before, and you mentioned it did not exist ? Currently, this is not happening in any of my projects …


Zeno1
  • New Member
  • 3 replies
  • December 5, 2024

I have also run into this bug, my icon instance swaps no longer respect the color changes made to the master component. - This is without any instance styling overrides (This 100% worked fine before & it’s happening in both old & ui3).

Do you have any idea when this will be fixed please?


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