Answer the question
In order to leave comments, you need to log in
Is it necessary to write an element and a modifier together in a class according to BEM?
Hello! Help to clarify the issue of BEM.
I watched a lesson with this example: https://jsfiddle.net/neizerth/z7eycmLy/7/
The author writes a modifier along with the main style. Here's an example:
I kept thinking that it's enough to write a modifier for an element. Is this notation correct?
Answer the question
In order to leave comments, you need to log in
And this is the right way. This is even in the BEM FAQ
https://ru.bem.info/methodology/faq/#%D0%9F%D0%BE%...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question