Skip to main content
Solved

Instance content

  • February 26, 2021
  • 5 replies
  • 704 views

Igor_Dudnyk

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

Best answer by adispezio

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.

View original

5 replies

Baffour
  • 53 replies
  • February 26, 2021

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.


Igor_Dudnyk
  • Author
  • 4 replies
  • February 26, 2021

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


Kelsey_Whelan
Figmate
  • Product Manager
  • 40 replies
  • February 26, 2021

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!


adispezio
Figmate
  • Designer Advocate
  • 9 replies
  • Answer
  • February 26, 2021

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.


Igor_Dudnyk
  • Author
  • 4 replies
  • February 26, 2021

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!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings