Skip to main content

Hello people

 

Is there any smart way of refactoring components?

 

Some context here: we’re about to give the design a boost and this will change many of the components in the library. The smartest way would be if the components are build with only tokens/variables but they are not so i need to find another way.

 

I would love to do it this way: 

  1. Build a Button_new with the new look so you can manually change it to that component (or make a property for it true/false)
  2. Change the old button with the new button

The problem i have with it that when i do that (by changing its name) the change doesn’t go through the component on my canvas.
 

Anyone can help?

Be the first to reply!

Reply