mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user