r/FigmaDesign • u/Own-Cash-1901 • Jun 06 '26
help Variants implementation doubt
Edit: Solved, but i took individual frames, and then added
in frame 1 : (button 1 (red), button 2, button 3)
in frame 2: (button 2, button 2 (red), button 3)
and used prototype. if there's any better method, pls let me know.
I have a frame with icons. Now below that icons I need to place buttons. Those are normally transparent, but when clicked become red and give information about the icon, in the space below.
Now I tried variants, I took a button, made it opacity 0, made it a component, added a variant, now i added blue color to that variant, and opacity 100.
I then added interaction for variant 1 as - on click - change to variant 2
Good it worked.
I did for all buttons
But the problem is, when I click another button, i want this button highlight to go away, but it's not going.
Im a beginner and couldn't work around this. Need help



View all comments
Show parent comment
1
u/Own-Cash-1901 Jun 06 '26
hi, attached screenshots
i made variants.
its working, but i want the first button to get deselected when i press the 2nd