Skip to main content
Solved

Icon not change color (applied property already)

  • December 13, 2023
  • 4 replies
  • 329 views

Austin422

I have been trying to solve a problem but need help figuring out what I missed. I created components for icons and also designed a card with three variant statuses: default, selected, and disabled. I applied properties to the icon and text. These components are used in the card. However, the color of the components does not change when I switch to other variants, although the text does change.

Thanks in advance!

Figma file link

Best answer by Austin422

Thanks for this! I just figured out that all the layers inside the icons need to have the same name, so the color can override it while changing the variant.

View original

y_toku
Figmate
  • Community Support
  • December 14, 2023

Hi there,

Thanks for posting the details. I’ve looked into the file and tried to switch the properties of these instances. I might have misunderstood, but it seems to be working like attached. Could you specify which color you would like to change?

Thanks,
Toku


Austin422

Hi! I just saw this. Sorry about the late reply. When I changed the states to disable and swap the icon variant, it didn’t apply the gray color to the icon. Is it the only way to have different states on each icon?


y_toku
Figmate
  • Community Support
  • April 10, 2024

Thanks for the video, which was helpful for me to understand the behavior. This looks like an existing bug that instance loses override when changing variants. I shared this with our internal team and I will let you know if there is anything I can share with you.

Thanks for your understanding.
Toku


Austin422

Thanks for this! I just figured out that all the layers inside the icons need to have the same name, so the color can override it while changing the variant.


Reply


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