Replies: 2 comments
-
The main answer is the support of mixes: it should be possible to have elements of different blocks on the same DOM node. <div class="block1 block2">
<div class="__elem1"
</div> can you guess is it For other advantages see https://en.bem.info/methodology/faq/#why-include-the-block-name-in-modifier-and-element-names |
Beta Was this translation helpful? Give feedback.
0 replies
-
Don’t go so deep see example of event > event__detail
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
I am new using the BEM methodology.- and I have a question that hopefully you can help me out with Thanks!
Based on the following case:

What is wrong or against BEM methodology writing the example in SASS like this:
DOM
SASS
I personally would avoid reusing the
block
namespace, since an element is already tight to is block.Similarly to modifiers, I would write something like this:
SASS
DOM
Beta Was this translation helpful? Give feedback.
All reactions