Skip to main content
Question

Icon of an nested component resets color after changing variant

  • August 22, 2022
  • 3 replies
  • 1473 views

Huy_Nguyen

I run into this issue when swapping the instance property of a nested component

Here is my demo file

I’m well aware of the union hack, however, the icons in our design system file have variants (outline, filed), which means that if we apply the union hack and want to change the icon variant, we must dive into 3-4 layers.

Here is another attempt of me wanting this bug to be fixed: link

This topic has been closed for comments

3 replies

Nick45
  • 1 reply
  • August 22, 2022

Yeah, this bug is so annoying, especially when your design system is using tokens.


Ben_Ho
  • Active Member
  • 25 replies
  • August 22, 2022

I had similar issues but some of them were fixed by making sure the layer order of vector and background be consistent. It didn’t fix all those for some reason.


  • 0 replies
  • September 21, 2022

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