Here is some SCSS code I am working with:
.a {
height: 100px;
width: 100px;
}
.b {
@extend .a;
height: 200px;
}
After compiling, the CSS appears as follows:
.a, .b {
height: 100px;
width: 100px;
}
.b {
height: 200px;
}
When applying this style to a <div class="a b">
, the height remains at 100px
instead of 200px
. How can I get the CSS to recognize and implement the height of 200px
in this scenario?