Re:CSS: The bad bits and how to avoid them
by jmsuth on Monday March 19, 2018 @06:25PM
(#16623852)
This isn't a realistic example of how you should use BEM, you would never have a block, element, and modifier in one class. The "block" class would be used in a div that wraps the elements:
Your simplification relies on an HTML hack and can potentially be more confusing when modifier names start colliding.
[ Parent
| on HN ]
Yuck. I would follow the advise in this blog post [1].
https://www.smashingmagazine.com/2013/08/semantic-css-with-i...