Open avxkim opened 6 years ago
@heihachi88 Yes, that's the right way.
@tadatuta thanks, rate-calc__internet
means that i can't reuse that block anywhere, but only inside rate-calc
, right?
Also why some people using a single dash instead of underscore, when referring to an modificator, e.g.: rate-calc__internet-active
, shouldn't it be like so: rate-calc__internet_active
?
rate-calc__internet
means that i can't reuse that block anywhere, but only insiderate-calc
yes
why some people using a single dash instead of underscore
There are few different naming conventions and all of them are valid. See https://en.bem.info/methodology/naming-convention/#alternative-naming-schemes
<nav class="navbar">
<ul class="navbar__menu menu">
<li class="menu__item"><a class="?" href="#"> BEM <a></li>
</ul>
</nav>
my question is:
<a class="menu__link">
or
<li class="menu__item item"><a class="item__link">
i think which "item" class only is to do a block to "link" and has no some other use...
Here's example:
Is it correct BEM usage? Nesting block in a block still seems unclear for me.