Figma Support Forum

Why icon instances are not preserving overrides only when I'm consuming them from a library?

So, I’ve created some icons using variants. It looks like this:


(How the layers are organized, the Icon layer is an Union)

image
(Properties of each icon)

Then, I created a button component with different sizes and states using a placeholder icon:

image

image

When I create an instance of the button in the same file (local component), I can swap the icon in the button and it preserves the icon properties:


(In this case, the properties were: Small, Filled)

But, when I use the same component in another file (now consuming from the original file, as a library), I can’t do the same:


(The icon properties got resetted)

Am I doing something wrong? Why the different behaviors when instancing inside the file and outside of it?