DEV Community

Discussion on: How BEM works in building large applications with custom CSS.

Collapse
 
fazy221 profile image
Faizan Raza

Great explanation I must say! Two things I would like to change are:

  • For modifiers, I believe -- is preferred instead of _. I'm seeing someone using _ first time for modifiers.
  • For deeply nested element like 2nd children, you said it's more preferred to use __ from first parent block instead of the child's direct parent. What if first children element of a block has two childrens A and B. Both will be using their grandparent's block in their name which could confuse a developer.