I have the following Sass placeholder and I want to extend it.
%btn
// ...button styling...
&[disabled], &.btn--disabled
color: red
.btn-primary
@extend %btn
The CSS output is the following:
[disabled].btn-primary, .btn--disabled.btn-primary{ color: red; }
When I'd like to get the following:
.btn-primary[disabled], .btn-primary.btn--disabled { color: red; }
I don't get why the output order is not the same as the specified one. How can I change that?