Skip to main content
Question

Swapping Icon library loses toggle switch capability?

  • February 17, 2022
  • 1 reply
  • 925 views

Johnny6

I have created a navigation with a default button (Icon + Label) that has a variant for Selected and Default states. The icons color changes for selected state. Our usage is, you can click into that icon and choose another from the library. These icons respond to the Selected change state. This also works with icons from a different library.

However, when we want to add an icon that lives outside of those libraries, say in your local library, It’s still possible to swap it, but it loses the Selected state color change. how can we make the newly create icons adopt the same behavior as icons in other libraries?

Mojo
  • February 18, 2022

Not sure if I got it, but have you checked the folder structure of those new icons? I’m asking this because it might be an issue related to naming of the layers (and amount) inside the icon component.

Meaning: if your menu item component has an icon with a structure like:
#frame

  • group
    • vector

But your new icons have a different structure, then Figma will not be able to intelligently match the changes.


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