Skip to main content
Solved

Buttons getting resetted in tab layout

  • June 12, 2023
  • 3 replies
  • 822 views

Hi, I’m new to figma and I’m creating a tab layout in figma. I’ve almost created an interactive tab layout by following this video from youtube but the problem is the tab buttons in my project is getting resetted back to normal and I couldn’t figure out the issue. I tried to rewatch the video to find out what I did wrong but I did almost the same as what he explained. Here’s my figma link. It will be greatly helpful if someone could help me

Best answer by Armin_Rouhanian

Hey there.

Let me explain what is was wrong:

You are on the Female page, it’s selected. You select the Male page. what happens? You go to the Male page. Then your setting on the “button” prototype changes the male button to the pressed state, but as soon as you release the mouse, it changes back to default. then you see a reset button.

solution:

Step 1:
change the “mouse down” condition to “on click” on every three buttons you designed. (it causes the button to stay selected. (but now you’ll get two selected button instead of one)

Step 2: check the “reset the component” button as in the image below (on the master prototypes, which changes your page)

last option

I suggest setting “change page” interactions on the master component named “tab layout” instead of the instances. much easier to debug and change the effects later. you had to connect the states 6 times (on each page, 2 times) but if you connect it directly, you’ll only have to set it three times. from the master component to each page.

read this article for better prototyping:

Figma

(And please, If you found this helpful, select this reply as “solution”

This topic has been closed for replies.

3 replies

Armin_Rouhanian
  • Active Member
  • 80 replies
  • Answer
  • June 12, 2023

Hey there.

Let me explain what is was wrong:

You are on the Female page, it’s selected. You select the Male page. what happens? You go to the Male page. Then your setting on the “button” prototype changes the male button to the pressed state, but as soon as you release the mouse, it changes back to default. then you see a reset button.

solution:

Step 1:
change the “mouse down” condition to “on click” on every three buttons you designed. (it causes the button to stay selected. (but now you’ll get two selected button instead of one)

Step 2: check the “reset the component” button as in the image below (on the master prototypes, which changes your page)

last option

I suggest setting “change page” interactions on the master component named “tab layout” instead of the instances. much easier to debug and change the effects later. you had to connect the states 6 times (on each page, 2 times) but if you connect it directly, you’ll only have to set it three times. from the master component to each page.

read this article for better prototyping:

Figma

(And please, If you found this helpful, select this reply as “solution”


Armin_Rouhanian
  • Active Member
  • 80 replies
  • June 12, 2023

I’ve also commented on your file to find it easier.

Hope it helps


Thank you so much Armin. It worked now