Closed troch closed 7 years ago
Yeap, it is a bug. Thanks for the report. I will try to look at in tomorrow.
Thanks!
Done 1921ceb
Released in 2.1.1
Thanks a lot for the quick fix!
@ai it appears the fix only works when there is one&
in the rule.
The following works:
.component {
:not(&--blue) {
color: blue;
}
}
But the following doesn't work
.component {
&--highlighted:not(&--blue) {
color: blue;
}
}
@troch will try to look in next days.
Fixed bfc0b907b39b0114d2a32748097ed04a2f842592
Released in 2.1.2
All good, confirmed as fixed 👍
Thanks!
Hi,
Use of
&
within pseudo selectors like:not
is broken on v2. The following example:On version 1.x, it was transformed to:
On version 2.x, it is transformed to: