Skip to main content
Benoit_Drouillat
Jul 26, 2022 12:54 PM UTC
Question

Interactive component dropdown

I created an interactive dropdown component with different states: default, hover, clicked and disabled.
The “clicked” state displays a list of items that can be clicked to trigger actions (e.g. load a frame or navigate to a page).
When I use the component in my prototype, I customize the labels of the list items by overriding the text.

Capture d’écran 2022-07-26 à 14.54.28

Problem: when I launch the prototype, the texts I defined in the instance do not appear but the default texts of the component.

Did I miss a step?

This topic has been closed for replies.

7 replies

tank666
Jul 26, 2022 1:15 PM UTC

To preserve overrides, you need to add a hidden list of items to each of the variants.

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
Benoit_Drouillat
Jul 26, 2022 1:48 PM UTC

Thanks for your answer!
Here’s what I currently get:

Not sure I get how having a hidden list of items can preserve overrides 😉

tank666
Jul 26, 2022 2:02 PM UTC
Figma Learn - Help Center

So add a hidden list of items to your variants (Default, Hover and Disabled).

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
Benoit_Drouillat
Jul 26, 2022 4:44 PM UTC

It worked perfectly! Thanks for your help 🙏

tank666
Jan 12, 2024 7:59 AM UTC

From this screenshot it is impossible to understand the structure of the collapsed variant and also see the full structure of the expanded variant. Could you share a link to the example file?

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
tank666
Jan 12, 2024 4:52 PM UTC

The structure of your variants is different, so overrides are lost. As described in the topic.
different-structure
Copy the “Menu” layer from the expanded variant and paste it into the collapsed variant and hide it.

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank