Can't override color of the icon (instance of a component)

Hello folks! I’m using Figma for a long time, but haven’t seen this issue yet.
I created a set of components for vector icons. The structure of each component:
{icon name} => “Vector” (see video)

When I use an instance of some icon, I can’t change the color of this instance. But if I detach the instance, the color is changing well. Other components that I created work well. I tried to copy icons, detach them and create new components - the result is the same :frowning:

What’s the problem? I don’t have any ideas why it doesn’t override. Tried both Figma and Figma Beta.

7 Likes

Okay, folks, I fixed the issue. Anyway, would be glad to hear why it was happening.

So, the layer inside of the icon frame called “Vector” was flattened, but to fix the problem, I needed to flatten it once again. It starts to work well only after the second flattening.

Why? I don’t know.

11 Likes

Thanks for this! :tada: Following your steps helped fix the issue for about 50% of my troubled icons. I continued messing around to find a solution for the others. For anyone else who comes here in search of guidance:

As noted above, doing flatten a second time works. Doing it a third time created the problem again. Doing it a fourth time fixed the problem. (And so on.) So: don’t flatten multiple times in a row to “make sure it sticks”.

For the remaining icons, I needed to enter the vector editing mode, click on the closed vector areas, change those fills to be some other color, and change those fills back to the color I wanted (default black). That seemed to cause recalculations to fix the issue. Repeat for each icon giving you trouble.

4 Likes

The extra flattening step helped me with my troubled icons, thanks so much, this was really puzzling me!

2 Likes

I encountered same trouble but this thread helped me out.

In my case, the problem occurred when I used Fill-Rule-Editor to change the fill rule.

Here is a test case.

2 Likes

I’m also using Fill-Rule-Editor like @shohei and having the same issue. Using the repeating flatten technique didn’t work.

1 Like

Why figma do it?? I have the same issue. :smiling_face_with_tear:

2 Likes

I have the same issue. :rage:

“For the remaining icons, I needed to enter the vector editing mode, click on the closed vector areas, change those fills to be some other color, and change those fills back to the color I wanted (default black). That seemed to cause recalculations to fix the issue. Repeat for each icon giving you trouble.” - Thanks for the tip, this really solves the problem :+1:

Ug! Same issue. I have a vector based icon library and I noticed this is only an issue for me when I use icons custom built vs icons pulled in from a third party library (Material Icons). Clearly something they have that the custom icons don’t.

Same problem here, impossible to override colors from a vector logo I created directly in Figma, unless detatching all components instances… This is totally killing the purpose of working on Figma. I’m very tired of fighting this bug. How can so many months of hopeless workarounds pass without even an answer from Figma about this…?

2 Likes

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