DEV Community

Discussion on: BEM Modifiers in Pure CSS Nesting

Collapse
 
schmoris profile image
Boris

@darkwiiplayer

At this point, what's the point of using BEM in the first place? Why not just do .tag-list__tag.github?

The only downside that comes to my mind is, if someone else in a big project adds something like a global .github { border: 1px solid red; } which then will also be applied to <div class="tag-list__tag github"></div>, whereas with the author's approach thing would stay isolated.

Collapse
 
what1s1ove profile image
Vladyslav Zubko

I would say not with the author's approach, but with the BEM's approach 😁