[system] Add support & usage of CSS logical properties
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 99.1k
- Forks
- 32.5k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 106
Description
Duplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Summary 💡
It would be great if MUI / MUI next would support and switch internally to CSS logical properties. This would make the RTL plugin unnecessary, reduce code that handles direction and sync with functionality of modern frameworks (like Chakra-UI)
- browser support: https://caniuse.com/css-logical-props
- MDN overview & guides https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties
- W3C draft: https://www.w3.org/TR/css-logical-1/
Examples 🌈
paddingInlineStart: 4
Motivation 🔦
Instead of using an RTL plugin, that has to provide transpiled css properties, it would be great to use CSS properties that change direction based on direction automatically. This is possible with CSS Logical properties in all modern browsers.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing MUI's current RTL plugin usage and the CSS Logical Properties guidance linked in the issue, including MDN and the W3C draft. Define the affected styling areas and tests before implementation; done means MUI can use logical properties internally without requiring the RTL plugin.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, javascript, react
- Domain
- frontend, internationalization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100