F
F
fronter-up2017-12-06 15:48:45
css
fronter-up, 2017-12-06 15:48:45

How would you name the block in BEM?

Good afternoon! Please help me figure out how the BEM block should be named?
There are blocks in which there is a small header, in the header there is a heading on the left, on the right - an icon on which a dropdown opens in which you can edit and delete.
Is it possible to name the block on the right - card__header__edit__delete?
Exactly what would you call it?
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Filippov, 2017-12-06
@vicodin

No.
If I understood everything correctly, then you can name it .card-header-dropdown, and it already contains .card-header-dropdown__edit and .card-header-dropdown__delete

V
Vasyl Boyko, 2017-12-06
@ferdasfarmazone

.card-header__title
.card-header__dropdown
.card-header__dropdown-edit
.card-header__dropdown-delete

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question