Figma Support Forum

Instance content

So I can’t change the text in the instance tooltip? It’s critical for interactive components.

2 Likes

Good point! I haven’t got beta access yet so I can test myself, but what happens if you switch the variant, update the text and then switch back. Does it remember your new tooltip text?

If not, it would be nice a component instance let you override the individual variants so you can do stuff like change the text.

I thought so too, but no, it doesn’t remember.

You can only override values that exist on the default state of the interactive component. As a workaround, you can make the tooltip frame hidden on the first variant. Then you should be able to override the text value in the instance.

This is what it looks like in the prototype view:

Here’s a figma file with the version I made if you want to duplicate and take a look: Figma

Let me know if that makes sense!

Good catch @Igor_Dudnyk! Kelsey’s solution is a great way to preserve the override between variants– we’ve updated the playground file with the fix and some additional tips.

2 Likes

I came to the same solution. I’m not sure that hiding elements is a good practice, but for now, it’s the only and the most logical solution. Thanks!

4 Likes