Fix typos in Code styleguide

This commit is contained in:
James Stuckey Weber 2023-06-16 11:49:43 -04:00
parent 42a5e34b0f
commit 4ad313b35e

View File

@ -36,12 +36,12 @@ otherwise.
- `l-` is for **layouts**. Example: `sl-l-grid`.
- `is-` and `has-` for states. Example: `sl-is-active`.
- `js-` is for classes specifically created for JavaScript targeting.
Exampe: `sl-js-toggle-navigation`
Example: `sl-js-toggle-navigation`.
- Use the [BEM][] syntax.
- **Block** -- the overall component object. Example: `sl-c-card`.
- **Element** -- any child of the block. Example: `sl-c-card__header`.
- **Modifier** -- any variation. This can be put on a block. Example:
`sl-c-card--primary`. It can also be put on an element Example:
`sl-c-card--primary`. It can also be put on an element. Example:
`sl-c-card__header--large`.
- Keep classes as flat as possible, and avoid nesting too deep.
- Avoid using element selectors **unless** you're using a wrapper utility to