Answer the question
In order to leave comments, you need to log in
What is the best way to split Block styling according to BEM?
We are considering a large project.
Here I have a button and I need to give it classes in which I need to pack its styles.
I dug up what needs to be broken down into styles that are responsible for the appearance of the element, positioning and block size. Correct me if I'm wrong.
For example, I have a button and it turns out I have to assign three classes, the first is the appearance, the second is the dimensions (of the block or element), the third is the padding?
<button class="button-form button-form_size-s button-form_layout">Log in</button>
Answer the question
In order to leave comments, you need to log in
For example, I have a button and it turns out I have to assign three classes, the first is the appearance, the second is the dimensions (of the block or element), the third is the padding?
<button class="form__button form__button--large form__button--green"></button>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question