Skip to main content
Question

Overriding nested or exposed component style does not update instances if the inner component’s variant has been changed

  • March 31, 2023
  • 1 reply
  • 950 views

francisco_mangochutney

Hello, I have found a bug I would like to see fixed.

Essentially let’s say if you have a component1 with a component 2 inside and they both have variants. If you have an instance of component1 and change the inner component2’s variants, when you update the master component1’s inner component2 the instance won’t change.


I made a Figma to reproduce:

Figma – 30 Mar 23

Steps to reproduce:
Change a nested text’s color in the Button component

Expected behaviour:
All instances should have their colours updated of that Button’s Colour variant should be updated.


The only way for it to update the style is to reset the any of the instance’s variants but, it’s a bit annoying in practice to do it to all instances.

The workaround is obviously to not have nested components and just do all the variants in one component. However if this get’s fixed, it is a more elegant and easier to scale solution to the current meta of making every single variant of x times y times z properties, and instead just making ‘properties’ separate.

This topic has been closed for comments

1 reply

  • 0 replies
  • April 30, 2023

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


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