Is block--modifier wrapping the block OK? #244
Unanswered
davidjgonzalez
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working within the constraints of a CMS that "wants" to generate HTML in this format:
Effectively the span (block--modifier) is dynamically injected by the CMS, and the div (block) and everything therein is defined by developers.
IIUC, the ideal application would be
but that being said, are there risks/inefficiencies following the approach where the
block--modifier
wraps theblock
element? Is this considered a violation of the BEM methodology?@floatdrop / @varya / @iamstarkov thoughts?
Beta Was this translation helpful? Give feedback.
All reactions