mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
doc: add note about Flex And Box in code style (#31962)
This commit is contained in:
parent
7738be32ec
commit
b82c34d9d3
@ -274,6 +274,7 @@ Inheriting all the rules of TypeScript, the following additionally apply:
|
||||
20. Do not use `React.Component::forceUpdate`.
|
||||
21. Prefer to use [compound typography components](https://compound.element.io/?path=/docs/compound-web_typography--docs) instead of raw HTML elements for text. This ensures consistent font usage and letter spacing across the app.
|
||||
22. If you can't use 21, don't forget to apply the correct CSS classes for font and letter spacing.
|
||||
23. Prefer to use `Flex` or `Box` components from shared-components for layout instead of raw HTML elements with CSS flexbox styles.
|
||||
|
||||
## Stylesheets
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user