mirror of https://github.com/zulip/zulip.git
docs: Document preference for hyphenated class and ID values.
This clarifies that kebab case should be the preferred style for multiword classes in HTML and CSS.
This commit is contained in:
parent
674cf8eacc
commit
deabb8ed53
|
@ -323,6 +323,10 @@ Don't use the tag name in a selector unless you have to. In other words,
|
|||
use `.foo` instead of `span.foo`. We shouldn't have to care if the tag
|
||||
type changes in the future.
|
||||
|
||||
Additionally, multi-word class and ID values should be hyphenated,
|
||||
also known as _kebab case_. In HTML, opt for `class="my-multiword-class"`,
|
||||
with its corresponding CSS selector as `.my-multiword-class`.
|
||||
|
||||
### Python
|
||||
|
||||
- Our Python code is formatted with
|
||||
|
|
Loading…
Reference in New Issue