Answer the question
In order to leave comments, you need to log in
Should I specify such a class in the markup for readability?
I created a button, it is an element of the main header block. next, I create a shortened title, after which I create a modifier that is more for the readability of the markup itself than I will use it in styling. The question is, does it make sense to indicate that the button is hidden on desktops, but appears when it is reduced to tablets or phones? Just write that btn-burger--hidden
it is not quite correct because it is hidden only for large screens.
<button type="button" class="main-header__btn-hamburger btn-hamburger btn-hamburger--desktop-hidden">
Answer the question
In order to leave comments, you need to log in
Simply saying that btn-burger--hidden is not entirely correct as it is only hidden on large screens.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question