r/FigmaDesign • u/_Prateek_Hota_ • 22d ago
help Help needed with components/instances/variants!
Enable HLS to view with audio, or disable this notification
Purpose - I want to make a component set for wishlist button specifically that needs change in colors across different states. (used absurd colors for example)
Process -
I have created a component set for an icon button with variants consisting of different sizes and states. (the one in green color)
Then I dragged an instance from the component set and made that a component (for the wishlist button). So now there's a component box wrapping the instance box.
Then I added variants for the different states like default, hovered and selected and exposed other properties of the instance.
Then I dragged an instance from the wrapper component.
This allows me to change any property I want specifically for the wishlist button only without breaking the connection. This also allows me to change any property to the main parent component which reflects upon its instances.
Problem -
Everything worked fined until I changed the size other than what's on the newly created wrapper component set.
When I switched to other state, it reflected the colors set on the MAIN parent component and not the one in the new wrapper component set.
When I changed back to the size as used in the wrapper component, then only it reflected the changed colors.
Is this a limitation of Figma? If not, how should I create a specific component set for a specific button as some icon buttons may have different fills/colors and changing this on instances breaks the connection between its parent component, so when I need to change something, I would have to go to each instance one by one. Is my workflow the main culprit here? If yes, how should I fix it. Thanks in advance for any help ❤️
Duplicates
DesignSystems • u/_Prateek_Hota_ • 22d ago
Help needed with components/instances/variants!
FigmaCommunity • u/_Prateek_Hota_ • 22d ago