I have the next Sass placeholder and I want to extend it.
%btn // ...button styling... &[disabled], &.btn--disabled color: red .btn-primary @extend %btn
The CSS output is as follows:
[disabled].btn-primary, .btn--disabled.btn-primary{ color: red; }
When I want to get the following:
.btn-primary[disabled], .btn-primary.btn--disabled { color: red; }
I do not understand why the output order does not match the specified one. How to change this?
source share