There is a block that is hidden and you need to show it .full-list.full-list--hidden .

How to name a button so that it .full-list--hidden by pressing?

There is an option to name .show-full-list , but is this correct in terms of BEM?

  • Or is it better not to create a class at all, but to add a data-action = "showFullList"? - anmold2512

1 answer 1

In this case, the class is better to call .js-show-full-list

I simply add at the beginning of such a selector js-'name'. You look at html and you understand what's what.