Having trouble getting this to work. Here is the situation:
- I have a duot tone icon set
- Icons have a variable number of layers (all labeled “vector”)
- I have a set of buttons, relaying on component properties to get it lean
- Primary state is a solid button, secondary is outline
I started with a single icon set, but changing the fill and border for for primary and secondary state was failing to redefine the colors correctly (some borders would update, others would not, only the simplest shapes like a magnifying search icon would work).
So then I duplicated the set, one for the primary button state and a reversed set for the secondary button state. This ensured that the icon colors worked in all cases.
However, each state required it own property name in the component properties to support icon selection in the instance. So each state uses its own icon set. The side effect of this is the icon selection is not preserved when toggling the button between primary and secondary states.
Is there a way to either:
- Make duotone icons take color updates correctly so I can use just one icon set?
- OR, if I have to use 2 independent sets, preserve icon select between state changes?
Here are the two variants and an instance: