Style token not working when in a slot

There appears to be an issue with Style Tokens across variants not working when they’re in a slot.

We have a style token that’s Black on the base variant, and White on the Dark mode variant. When the style token property is applied to an element in a slot, it doesn’t change to the appropriate variant’s color.

I’ve got to “X” close buttons side by side. One is in a slot, and the other isn’t, to illustrate.

Screen Shot 2022-05-28 at 11.26.41 AM.png

hmmm thanks for the report, we will investigate it, can you send me the project id in dm?