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.
@darkwiiplayer
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.I would say not with the author's approach, but with the BEM's approach 😁