Open titouanmathis opened 5 years ago
I find this is changing a convention that we have globally on the project, which is using bem --
for modifiers.
I think consistent naming conventions make things more readable by design.
If we want to make some classes shorter, we just like in your exemple write bg-red--force
instead of the current background-red--force
that we have in the toolkit
I think consistent naming conventions make things more readable by design.
Damn, you are right... I was really enjoying this idea, but it might be counter-intuitive to add more specificity in the naming convention of the classes.
I'll open another issue to discuss the shortening of some of the classes and let this one for a little while in order to get everyone's feedback.
Proposal
Replace all the
--force
modifiers with a!
to get smaller class names and, in my opinion, a more logical modifier.You can test it with this small demo on Codepen.
Pros
Cons
!
:\!
Any thoughts @studiometa/studiometa-scss-toolkit ?