Figma Support Forum

Variant and nested component instance error

Hey, I’m building a simple iOS navigation bar and I wanted to use as little variants as possible. It’s a simple component with placeholder icons both left and right, a right side badging icon and a centre instance for single line text, double line text and possible logos.

When I test my variants, they work until I swap the logo to double line text, and switch the badge icon on and off it swaps the double line instance back to logo instance and I can’t understand why.

All my instances are the same dimensions as the ones they are replacing. Is it because one instance is 2 x text objects and one is a vector object?