For the following SASS when class-a also has class-b then the color applied is blue.
However when the body element has class-a I would expect the color to be red, but instead this results in an error.
.class-a {
&.class-b {
color: blue;
}
&body {
color: red;
}
}
&.class-b
which would result in.class-b.class-b
? – Christoph.class-abody
instead of the desiredbody.class-a
. You would need to have it written asbody&
instead of&body
. – cimmanonbody.class-a
selector? – cimmanon