Skip to main content

Instance swap properties are somewhat limiting


Andy5

Scenario:

I’ve got a button component with an icon. I apply an instance swap property to the icon so I can control it from the side panel while the button component is selected. 🤘🏻

The issue:

The instance swap property is preventing me from swapping the instance when I have the icon selected directly. To swap the instance, I must first move back up the layer stack to select the parent button component, use the instance swap property, then re-select the icon directly to change variant options like style and size.

Solution:

If a component has an instance property attached, don’t prevent users from swapping its instance when it’s directly selected. Instead, sync its state with the instance swap property.

This topic has been closed for comments

5 replies

Daniel17
  • 1 reply
  • May 20, 2022

100%! I ran into the same issue.


David_McEnroe

Yes!!
Even though it seems great at first, we had to decide to leave instance swap out of our design system for now because it disables the “normal” method of swapping instances

This was a deal-breaker because we thought it would cause confusion for designers that aren’t familiar with the new features and missed the swap at the parent level. Seems like an easy fix!


Andy5
  • Author
  • 11 replies
  • July 1, 2022

Nathan_Proffitt

Glad to hear this is a known limitation! If the item being swapped has its own properties, we should be able to edit those too from the parent component! Excited for a release on this.


  • 0 replies
  • October 25, 2022

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.


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