3 ms·
I think you're missing the whole point of BEM. Your suggestion is something I would avoid at all cost. Here's a good article explaining the idea: http://csswi
by Kiro 10y ago
I think you're missing the whole point of BEM. Your suggestion is something I would avoid at all cost.
Here's a good article explaining the idea:
http://csswizardry.com/2013/01/mindbemding-getting-your-head-round-bem-syntax/ http://csswizardry.com/2013/01/mindbemding-getting-your-head...
- allendoerfer 10y agoI think you would avoid defining .primary I don't see a reason, why you would not define .block__element.primary.
- Kiro 10y ago> I think you would avoid defining .primary How would you enforce that when working in a big project with many contributors? I don't want to risk breaking my component if someone all of a sudden declares a global .primary class. When using --primary I know that won't happen since it's completely bound to my component.
- throwanem 10y ago> How would you enforce that when working in a big project with many contributors? So what you're saying is that BEM is the Java of CSS? Because that explains a lot.