Skip to content

Can we make element of block modifier? #151

@learningcreature

Description

@learningcreature

Hi there, I just wanted to know whether is following code is valid or not? Creating an element for the block modifier i.e. in this case "block--mod" is a modifier for the "block" block. Is it allowed to create a nested element with this pattern: "block--mod__elm". I am quite new to BEM and trying to understand it.

<div class="block block--mod">
   <div class="block__elm block--mod__elm">
</div>

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