I'm currently facing a problem with a mixin I created to convert some Less code into Sass:
@mixin button-variant($color, $background, $border)
{
...
.foreverAlone{
...
}
.iThink .illNeverWork& {
color: $pinkUnicornRainbow;
...
}
}
Unfortunately, the current implementation is not functioning as expected :D I am hoping for it to produce output similar to:
.callerClass .foreverAlone{
...
}
.callerClass .iThink .illNeverWork.callerClass{
color: #123ABC;
...
}
Since the mixin is being used within various div classes, creating a static solution is not straightforward.
If any Sass experts (or even non-experts with clever ideas) have a workaround, I would greatly appreciate your input. Thank you all for taking the time to read and potentially offer solutions!