Andrey (azangru) wrote,
Andrey
azangru

I wonder whether this (surely very smart; he is a contributor for a CSS-in-JS library) developer understands the semantics of BEM. Can a "Submit" be an element within the my-button block? I would have thought that submit is a variant (modification) of my-button.



Also, it’s interesting that in the English-speaking world the conventional separator between "blocks" and "elements" is a double hyphen. From what I heard, originally in Yandex they used double underscores for that purpose, and a single underscore to separate a modifier from an element.

UPD: Actually, the original separators can still be seen on a Yandex page about BEM as a methodology: https://en.bem.info/methodology/css/
Subscribe

  • (no subject)

    Course description: In today's business world there are massive goals around diversity and inclusion and you are empowered to lead the way as…

  • Via Reddit

    I didn't know what the operation game was, so I looked it up. The guy, indeed, is clearly awake: I only learnt about charlie horse from King's…

  • (no subject)

    Listened to a talk from YCombinator's Startup School 2013: The tone of the talk is very different from the the tone that's typically employed…

  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments