Hi,
I’m creating complex and nested variants and I’ve been wondering if the following behavior is a bug or simply how Variants work, in which case I’d like to suggest some improvements.
Let’s say I have a component, a button, with multiple states that are properties of a single Variant.
Now I have another Variant, in which my button is nested, that also has states (for example, a page with a light and dark version).
If I change the state of my button (child Variant) in an instance of the Page Variant, and then change a property of the parent, the child Variant reverts back to whatever set of properties it has in the master parent Variant.
It would be nice to preserve “overriden” properties of child variants when changing the parent Variant’s properties (if they match).
Hope the situation is clear! Cheers.