Andrey (azangru) wrote,

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:

  • (no subject)

    To the future me: I keep returning in my mind to the simple idea in this talk about containing React component's logic in a custom hook and having a…

  • (no subject)

    I've been listening to The Boys produced by the Graphic Audio. Better than the film; more irreverent; the Butcher character is even more profane and…

  • (no subject)

    I don't think I was even taught about the Holocaust in school. If I was, it probably was just a footnote somewhere. History wasn't among my favorite…

  • Post a new comment


    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.