[Bug] PigmentCSS. mixins
are not skipped in shouldSkipGeneratingVar
#44212
Labels
package: pigment-css
Specific to @pigment-css/*
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Steps to reproduce
Link to live example: packages/mui-material/src/styles/createMixins.js
Current behavior
The file
createMixins
contains invalid CSS to place in a CSS variable.PigmentCSS adds this invalid CSS as the value of the generated
--mui-mixins...
CSS variables.Expected behavior
mixins
is skipped incssVariables.shouldSkipGeneratingVar
by defaultContext
I stumbled on this issue, when using a minifier on the CSS.
If you refer to
createMixins.js
you can see you have@media
queries in the keys. It breaks the css variables names.This is what the CSS minifier highlighted:
Your environment
npx @mui/envinfo
Search keywords: pigmentcss, mixins, shouldSkipGeneratingVar
The text was updated successfully, but these errors were encountered: