M
M
Muvka2019-10-29 17:48:42
HTML
Muvka, 2019-10-29 17:48:42

What should I do if I write according to BEM, but there are 2 blocks in the layouts with the same content that look different?

The bottom line is that services look very different on different pages, so modifiers are indispensable. In my case, the "Services" block. What to do in such cases? I can't even find a synonym for services.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin, 2019-10-29
@Muvka

Make it not one word but two for example:
- main-services
- detail-services
- catalog-services

A
Andrew, 2019-10-29
@uselessmindYEAH

Or split into two different blocks
Or use a mix
https://en.bem.info/methodology/key-concepts/#%D0%...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question