Skip to main content
Answer

Changing a variant of a component loses its link

  • May 6, 2024
  • 2 replies
  • 181 views

Daniel61

Hi Figma community,

I have a component with 2 variants – one mobile, one desktop. Its a simple text-button-image element.

I link the desktop button of the instance to another page. When I switch the variant to its mobile equivalent, it looses its link. It still knows it has a “click” interaction but it goes to nowhere.
Why is that?

Thanks for your help!

Best answer by Daniel61

Found the solution: make sure that in your main-comp, nothing is linked on the button otherwise it will always override the link in your instance when you switch!

This topic has been closed for replies.

2 replies

Daniel61
  • Author
  • New Member
  • May 6, 2024

Bildschirmfoto 2024-05-06 um 12.16.37


Daniel61
  • Author
  • New Member
  • Answer
  • May 6, 2024

Found the solution: make sure that in your main-comp, nothing is linked on the button otherwise it will always override the link in your instance when you switch!