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:

  • 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.