postcss / postcss-mixins

PostCSS plugin for mixins
MIT License
462 stars 47 forks source link

Mixin processing issue #132

Closed AndreyLuzinov closed 3 years ago

AndreyLuzinov commented 3 years ago

I wrote a following mixin in my mixins.pcss:

@define-mixin buttonInsetFocusShadow { &::not([disabled]) { &::focus { box-shadow: inset var(--focus-shadow); } } }

And I've used it like this: .button { ... @mixin buttonInsetFocusShadow;

I got image

So it looks like my mixin hasn't been processed by post-css engine and just inserted as is in css file.

My plugin config: image

What I'm doing wrong?

ai commented 3 years ago

Check postcss-nested issues. It is known issue, but nobody send PR yet.

AndreyLuzinov commented 3 years ago

Thanks for quick response