Skip to content

How to name a block children of another block? #158

@dessty

Description

@dessty

Let's say I'm buidling a dialog/modal component, which is composed of 3 parts:

  • the header
  • the body
  • the footer

My root block would be .modal. But .header., .body and .footer are also blocks.
Should the 3 dependent blocks be named .modal__header, .modal__content, modal_footer?
Or simply .header, .content, .footer?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions