mirror of
https://github.com/airbnb/javascript.git
synced 2026-04-25 03:00:19 -04:00
[guide] [css] Added what BEM stands for (Block Element Modifier)
This commit is contained in:
committed by
Jordan Harband
parent
e6f292286b
commit
d1705c389e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user