3 ms·
"reuse the same classes but with different content" What difference does the content make if the styling is meant to be the same? "reuse pieces of behavior"
by talmand 10y ago
"reuse the same classes but with different content"
What difference does the content make if the styling is meant to be the same?
"reuse pieces of behavior"
Now, that made me curious. Can you expand on that because I'm not sure I quite understand what you mean.
edit: I've read through the naming convention they describe and I don't see much anything that different than how I would create CSS for a website. It's just a clean naming convention that would work for a website as well as an application.
- bobbytherobot 10y agoI think "content" should be "context". It is when you create a class based on appearance instead of context. To make it worse, is when the class has a semantic name like Hero but it is being used in clearly non-Hero usages. It makes refactoring hard.
- talmand 10y agoOk, sure, I see what you mean. But I put that under "not using tool correctly so blame tool" category.