Skip to main content

Hello, 

I’m trying to prototype a certain button and it’s not working well. Could anyone help me?

So for example, if I click 2, the 2 button gets the outline (the one 1 has now) and the 1 button should remove it. (I’m sorry for my English 😅) and vica versa. Could you please tell me how to do this prototype. The first part (2 getting an outline) was easy, but I don’t knowhow to do the second part (1 removing the outline when I click 2).

Hi there!

I checked your setup, and I think I understood your problem. You want a button selection effect where clicking one button highlights it with a black stroke, while the other goes back to default.

I solved this using a Color Collection in Figma with three states: "No Selected", "Button 1 Selected", and "Button 2 Selected". Each button's stroke color is linked to this collection, and clicking a button triggers the corresponding state:

  • Click Button 1 → "Button 1 Selected" (black stroke on Button 1, default on Button 2)

 

  • Click Button 2 → "Button 2 Selected" (black stroke on Button 2, default on Button 1)

Just make sure that in the layer settings, no Collection Mode is selected for the buttons.

This setup is clean, easy to manage, and works perfectly for up to four buttons.

Hope this helps!


Thank you so much!!! It was a great help. 😄


Reply