4 ms·
I think you would avoid defining .primary I don't see a reason, why you would not define .block__element.primary.
by allendoerfer 10y ago
I 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.