Skip to content

Commit

Permalink
[guide] [css] Added what BEM stands for (Block Element Modifier)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuel-455 authored and ljharb committed Feb 19, 2024
1 parent e6f2922 commit d1705c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion css-in-javascript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

- Use an underscore for modifiers to other styles.

> Why? Similar to BEM, this naming convention makes it clear that the styles are intended to modify the element preceded by the underscore. Underscores do not need to be quoted, so they are preferred over other characters, such as dashes.
> Why? Similar to [BEM](https://getbem.com/introduction/), this naming convention makes it clear that the styles are intended to modify the element preceded by the underscore. Underscores do not need to be quoted, so they are preferred over other characters, such as dashes.

```js
// bad
Expand Down

0 comments on commit d1705c3

Please sign in to comment.