Logical Properties instead of Directions #389
bennypowers
started this conversation in
General
Replies: 3 comments 2 replies
-
@bennypowers Can these be tokens or no? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Here here! I just learned about these and I 100% agree. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@bennypowers Is this something that I or we need to add to the list of design tokens? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TL;DR: We should use logical properties instead of directions everywhere, both in our internal CSS, and in our element APIs
left
->inline-start
top
->block-start
right
->inline-end
bottom
->block-end
What are logical properties?
Logical properties allow us to support RTL and top-to-bottom languages without much fuss.
Read about CSS logical Properties on MDN
Who needs to be aware of this
@RedHat-UX/developers and @RedHat-UX/designers alike need to be aware of these properties, and use them in
Beta Was this translation helpful? Give feedback.
All reactions