Override Text on Hover not working

Hi there!

New to Figma, but I did make sure to watch all the tutorial videos and go through forums before posting.

What I’m using:
Figma Desktop App version 116.4.4, on macOS Catalina version 10.15.7

The problem I’m experiencing:
I created a component for a menu item to use in my nav bar, and for the menu item they obviously need to be labelled different. So I created instances on my frame, and then change the text. Noticed that on hover the text change for those instances did not work, changed it within the design file but on the prototype it does not show the changes.

Screenshots:

But on the prototype, the default shows the text changed, but on the hover it goes back to the default text “Menu Item”.

Is anyone else having issues?

Let me know!

Thanks,
Matea

Your text elements must have the same name in all variants in order to preserve overrides (eg. “label”).

Do you mean instead of “MenuItem/Default” and “MenuItem/Hover”?

I tried that and this issue is still occurring. On hover the type is still “Menu Item”

Screen Shot 2022-11-02 at 11.14.21 AM
Here is a screenshot of the prototype.

Could you share a link to an example file?

Yes of course; https://www.figma.com/file/1KFbpu7L6N4PnKkhottiat/Untitled?node-id=2%3A17

Really appreciate your help on this!

It’s not public currently, so we can’t view it.

can you update permissions?

Screen Shot 2022-11-02 at 12.16.11 PM

Here’s your problem…
image

The children of “hover” and “default” need to be named the same.

1 Like

OH! In the main component!!
I see, thank you!!

1 Like

for sure, happy to help!

Actually this caught my eye cause I was struggling with it last month. I wrote an in-depth piece on it if you want to check it out.

https://bootcamp.uxdesign.cc/retaining-styles-when-swapping-instances-within-a-nested-component-figma-201-335d054187d0

1 Like

Obviously need to learn more, so appreciate the link! Will check it out!

Thanks again :slight_smile: