Answer the question
In order to leave comments, you need to log in
Modifier at parent SCSS, BEM?
Hey!
There is this markup:
<div className="block">
<div className="block__element_active">...</div>
<div className="block__element_hidden">...</div>
</div>
.block {
&__element {
&_active {
}
&_hidden {
}
}
}
<div className="block block_web">
<div className="block__element_active">...</div>
<div className="block__element_hidden">...</div>
</div>
.block {
&_web {
&__element {
&_active {
}
&_hidden {
}
}
}
}
Answer the question
In order to leave comments, you need to log in
the linter swears, saying that the selector is not according to BEM:
.block {
&_web &__element {
&_active { }
&_hidden { }
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question