Hello,
Variants were a literal godsend when they got introduced, but there’s an issue that still persists to this day.
Let’s say I have a very basic button component, containing text and an icon, and that has 3 variants for different hierarchy levels. The issue is, if I need to swap my icon’s instance, it will stop picking up the fill override when I change variants, thus breaking my component, as illustrated here:
I’m aware of a workaround involving union groups, but it’s very tedious to set up and it makes the instance swapping process more annoying than it should be. Is there any fix in the works?