Can we make element of block modifier? #250
Unanswered
learningcreature
asked this question in
Q&A
Replies: 2 comments
-
I think you're wanting the <div class="block block--mod">
<div class="block__elm block__elm--mod">
</div> My understanding is that the only order is Block -> Element -> Modifier. The element and/or modifier can be left off, but an element cannot ever follow a modifier. From a CSS standpoint I have written mod classes that were wildcarded. Such as |
Beta Was this translation helpful? Give feedback.
0 replies
-
More chatter here #184 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions