Closed volker-schukai closed 1 year ago
Sorry, I do not want to implement it right now:
You can implement this logic in another plugin like postcss-slotted-nested
Is there any workaround to achieve this behaviour using this plugin?
I tried doing this, but I guess even this is not supported:
.foo {
&-bar {
:where(& .baz) { ... }
}
}
/** it does work and results in the following: */
:where(.foo-bar .baz) { ... }
My bad the above works. I was using a wrong selector 🙇🏽
I think that
slotted(p) { &:hover }
must lead toslotted(p:hover)
and not toslotted(p):hover
.I have written a test case:
https://github.com/volker-schukai/postcss-nested/blob/a0b8185078853c5a38174ae5bcfe22bb73ac4aac/index.test.js#L778
I think this must happen in the function
interpolateAmpInSelector
, don't know me well enough with the internal structure con postcss to build a patch.example