When I use the component in the app, the default value of size can't take effect, but when I set size = small explicitly, it's OK. The typescript type refer is wrong in vscode, it should refer small | large value, but it show below screenshot.
Expected behavior
When variant name and util name are the same, the defaultVariant can work as normal.
Bug report
Describe the bug
When stitches utils name and component's variant have the same name, the
defaultvariants
can't work as normal, it's broken.To Reproduce
I have a
size
util in stitches.config as belowAlso I have a
size
variant in one of my components, setting one value as defaultVariant.When I use the component in the app, the default value of size can't take effect, but when I set
size = small
explicitly, it's OK. The typescript type refer is wrong in vscode, it should refersmall | large
value, but it show below screenshot.Expected behavior
When variant name and util name are the same, the
defaultVariant
can work as normal.Screenshots
System information