Skip to main content
Question

Creating swap property for nested component containing text not working

  • December 21, 2023
  • 1 reply
  • 225 views

I have a button icon component set with different button (and icon) sizes. I want to create icon swap in my properties so it is easy to switch it using panel on the right.

The icon set we are using is fontawesome icon font (not SVG file).

When I create icon swap property and apply it to all the icon sizes in the component set, all my icons change to the same size. Ie I cannot have different sizing of icons attached to the same property.


Is anyone having the same issue and how did you resolve it? I have a suspicion the issue stems from using live font in icon set rather than SVG file. Note: converting icons to SVG is not the option for us.

This topic has been closed for replies.

1 reply

Gayani_S
Figmate
  • Community Support
  • 2091 replies
  • December 22, 2023

Hey Ida, if I have understood your issue correctly this is a longstanding feature limitation. The way it works today, is that the size of a nested instance will always stay the same no matter what you swap. In other words, when you swap a nested instance, it will take the size of the original nested instance that was there.


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