Hi all, so I’m working on a design system with light and dark modes and have run into an issue with overrides not sticking for nested variant components.
So the set up looks like this: Say I want to make some sort of list with items and some of those items can have a badge. I have variant components for a version of the list item with and without the badge as well as dark and light version components for everything.
Say I want to have a group variant component for a number of list items and make that in both light and dark versions.
Then say I make an instance of the group component for the light version, change some overrides like text and make one of the nested variant components utilize one of the list items with the badge and because I also want to have this in a dark version too, I duplicate that group component instance and flip the variant to dark.
When I do that, all of the text overrides are kept, but the override for the one instance of the list component with badge is not kept.
It would make my life so much easier if nested variant components within variant components would keep overrides like this all the way down when changing the variant of the group.
I was wondering - is there anyway around this? Can this be addressed?
Thanks!