Skip to main content
Solved

Change an icon component but keep the color override?

  • November 12, 2021
  • 3 replies
  • 6471 views

Tom_Bryan

Hi,

I want to update a few icons in my designs system. When I say update I mean replace with a new one within the existing icon component. It would be great if it would keep the override colors I have in my designs, is something like this possible?

Best answer by tank666

Use the Union trick to keep the icon color overridden.

You can see an example of my file here: How do you override icon color when going back and forth between variants? - #5 by tank666

View original
This topic has been closed for replies.

3 replies

tank666
  • 4873 replies
  • Answer
  • November 12, 2021

Use the Union trick to keep the icon color overridden.

You can see an example of my file here: How do you override icon color when going back and forth between variants? - #5 by tank666


Tom_Bryan
  • Author
  • 1 reply
  • November 12, 2021

Thanks, this does work but I have about 10 icons I would like to update and this does make them a bit messy. I guess it’s a choice to make between messy components and updating every instance color 😂 🙈


  • 0 replies
  • December 12, 2021

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