N
N
NaN2018-01-10 07:49:06
htaccess
NaN, 2018-01-10 07:49:06

Why such a structure (BEM)?

Why is lang-switcher__link a child of lang-switcher and not lang-switcher__item?
Couldn't lang-switcher__link be made like lang-switcher__item__link?
5a559a71cf914155830870.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
dodo512, 2019-10-29
@bplmeddy

Move the redirect rule to the beginning of the file.

E
Evgeny Kalibrov, 2018-01-10
@KornevaViktoria

Because lang-switcher__item is not a separate component that can be taken out of lang-switcher, it depends on it. And the lang-switcher__link style depends on the root component, not on the "wrapper" lang-switcher__item . And the tree simply shows the nesting of DOM elements.

P
profesor08, 2018-01-10
@profesor08

Because it refers to lang-switcher, not lang-switcher__item. Otherwise it would be item__link.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question