[guide] [css] Added what BEM stands for (Block Element Modifier)

This commit is contained in:
Ngene Arinzechukwu
2024-02-19 16:47:10 +01:00
committed by Jordan Harband
parent e6f292286b
commit d1705c389e

View File

@@ -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