G
G
Genri_Rus2020-04-26 01:28:55
BEM
Genri_Rus, 2020-04-26 01:28:55

Is it possible to call BEM classes like this?

<div class="navbar-center">
  <div class="navbar-center__menu menu-mobile">
    <div class="menu-mobile__icon">
      <span class="menu-mobile__line">0</span>
    </div>
    <div class="menu-mobile__modal">
      <div class="menu-mobile__header">
        <div class="menu-mobile__header-title">Меню</div>
        <div class="menu-mobile__header-close"></div>
      </div>
      <div class="menu-mobile__block">
        <ul class="menu-mobile__list">
          <li class="menu-mobile__item">
            <span class=""></span>
          </li>
          <li class="menu-mobile__item"></li>
        </ul>
      </div>
    </div>
  </div>
</div>


Mobile version of the menu.

Is the menu-mobile__block class appropriate or is it still possible to use some other name?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arseny, 2020-04-26
@Genri_Rus

1. Names should be clear. Without the layout itself in front of the nose.
2. You have row-space--betweencrap here, it seems, if I understand correctly, it should be like thisrow--space-between

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question