Open f-liva opened 9 years ago
This is another case:
@include component(header) {
@include option(stick) {
@include component(addsearch) {
@include part(button) {
color: white;
}
}
}
}
Given output:
.header.\--stick .addsearch .header__button {
color: white;
}
Expected output:
.header.\--stick .addsearch__button {
color: white;
}
Given this markup
And that SCSS
This compiled CSS outputs
But
.main
should not be nested under the.module
component. The right result should be:Nesting a part under a option should print only the first grade parent component, and not all hierarchy.