microsoft / griffel

CSS-in-JS with ahead-of-time compilation ⚡️
https://griffel.js.org
MIT License
1.2k stars 61 forks source link

core: @layer is not part of property hash #561

Closed layershifter closed 6 months ago

layershifter commented 6 months ago
const useClasses = makeStyles({
  root: {
    color: 'red',
  },
  rootWithLayer: {
    '@layer foo': {
      color: 'red',
    },
  },
});

Both color: red will have the same hash, this will cause collisions during merging.

https://stackblitz.com/edit/vitejs-vite-lvmmff