Answer the question
In order to leave comments, you need to log in
Is it correct to have a nested element with class input_label-text in input_label?
There is an input block:
<div class='input'>
<label class='input__label'>
<span class='input__label-text'>Label text</span>
<input class='input__control'>
</label>
</div
Answer the question
In order to leave comments, you need to log in
Yes, that's possible.
input__label-text is more like element element,No, it doesn't look like it, separating the class name with a dash is quite normal practice.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question