Answer the question
In order to leave comments, you need to log in
How should modifiers of different font sizes be named according to BEM?
There is a block. There is an element inside this block. Inside this element, there is text with multiple font sizes. So, what should the modifiers of these sizes be called?
block__title-text--large, block__title-text--medium and block__title-text--small are oversized titles. For example, the following font sizes are used in the text: 90px, 80px, 60px, 30px, 10px. Which of them are large, medium and small? And what should we call the other sizes then, without writing something like --super-mega-ultra-large for 90px and --super-mega-large for 80px?
Answer the question
In order to leave comments, you need to log in
For example, the following font sizes are used in the text: 90px, 80px, 60px, 30px, 10px.
block_title-text--small
And what prevents, for example, to create separate classes in the text.scss file, or whatever you use there, and write text-sm text-md and so on
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question