A
A
Andrei Popov2019-02-20 17:33:32
BEM
Andrei Popov, 2019-02-20 17:33:32

Is it normal for BEM to make blocks of text?

Is it normal for BEM to make blocks as simple as text, and put these blocks in other blocks (like a button block)?
5c6d6533921d5733555464.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2019-02-21
@andrei500

Yes, it’s okay, but your modifiers are not very good, the binding to styles is too high, more precisely to one CSS property, BEM recommends coming up with names based on semantics, or at least you can use more abstract names, this will allow you to maintain readability and have room to maneuver.

text_color_white -> text_light
text_color_grey -> text_dim

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question