You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Selectors must target the ampersand character ('&'), which refers to the generated class name, e.g. '&:nth-child(2n)'
Looks to be a false positive, or something is mungeing the selector.
It could be all selectors with ampersands and it could be more characters in property keys than just / that cause this.
Note Don't be tempted to say change the property key (I will for now) but I think fractions are super sensible in a lot of cases. Another reason is I'm developing something to consumption by other devs and I'd like to stick kinda close to the tailwind naming conventions for some keys just to aid with familiarity and documentation.
Describe the bug
Using Sprinkles I want to add property keys similar to this:
It works fine except in combination with
conditions
like this:Error is:
Looks to be a false positive, or something is mungeing the selector.
It could be all selectors with ampersands and it could be more characters in property keys than just
/
that cause this.Note Don't be tempted to say change the property key (I will for now) but I think fractions are super sensible in a lot of cases. Another reason is I'm developing something to consumption by other devs and I'd like to stick kinda close to the tailwind naming conventions for some keys just to aid with familiarity and documentation.
Link to reproduction
https://codesandbox.io/s/winter-hill-j2tfb?file=/src/sprinkles.css.ts
System Info
Output of
npx envinfo --system --npmPackages @vanilla-extract/css,@vanilla-extract/webpack-plugin,@vanilla-extract/esbuild-plugin,@vanilla-extract/vite-plugin,@vanilla-extract/sprinkles,webpack,esbuild,vite --binaries --browsers
:The text was updated successfully, but these errors were encountered: