S
S
Senseich2018-05-06 23:03:34
css
Senseich, 2018-05-06 23:03:34

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:
5aef5eec45c10059093357.png
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

1 answer(s)
L
Lynn "Coffee Man", 2018-05-06
@Senseich

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 question

Ask a Question

731 491 924 answers to any question