First Point
Disagreeing.
This was already proposed by ArtOfCode here:
And the responses were quite unanimously against using standard BEM. Coincidentally the three likes on Art’s post are by the users who then write dissenting opinions, so we shouldn’t take it as “affirmative votes”.
I’m just linking to my previous arguments to prevent duplication of them, but I am opposing this for multiple reasons:
Second Point
Mostly agreeing.
I think this is okay, for example there is no (0) use of them in Co-Design for them right now. However, what for example about things like having a border on the top on small and on the right on large screens (for examples a container that is distinguished from others with a border)?
Third Point
Disagreeing.
Modifiers and Atomic Classes are IMO inherently different. Atomic Classes allow you to control one specific design aspect (such as border, color, padding, …), whereas Modifiers allow you to select a kind of “alternative presentation” for an element, which is still 100%-ly under the CSS’s control. Setting the color to red is something different from giving a modal a backdrop. Therefore I think it is also useful to distinguish between the two types.
However I agree, that .is-disabled
would be a bad Modifier in general, as it’s idea can and should be represented by semantic HTML attributes. I don’t see, though, where this was proposed (neither in the naming standards, nor in CD), so I would not use this as an example. The same could – BTW – also apply to the .is-hidden
class in combination with the [hidden]
attribute.
A question
I don’t quite get, what you’re trying to say with the part I highlighted. Which styles are duplicate?