[List] ListItemText does not align according to the dir="ltr" value
Open
@siriwatknp is already working on this.
Since Sep 11, 2023.
scope: list
- 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
Steps to reproduce 🕹
Link to live example:
https://codesandbox.io/s/list-listitemtext-does-not-align-according-to-the-dir-ltr-value-22tqtl
Current behavior 😯
Even though the app is configured with dir="ltr", the ListItemText element still aligns to the right (unlike other elements)
Expected behavior 🤔
When app is configured with dir="ltr" the ListItemText component will be aligned to the left (similar to other components)
Context 🔦
The error occurs whether the browser language is set to Hebrew (rtl) or English
Your environment 🌎
I use the Chrome browser
npx @mui/envinfo
System:
OS: Windows 10 10.0.22621
Binaries:
Node: 18.16.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
npm: 9.3.1 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 116.0.5845.180
Edge: Spartan (44.22621.2134.0), Chromium (116.0.1938.76)
npmPackages:
@emotion/react: ^11.11.1 => 11.11.1
@emotion/styled: ^11.11.0 => 11.11.0
@mui/base: 5.0.0-beta.14
@mui/core-downloads-tracker: 5.14.8
@mui/icons-material: ^5.14.1 => 5.14.1
@mui/lab: ^5.0.0-alpha.138 => 5.0.0-alpha.143
@mui/material: ^5.14.8 => 5.14.8
@mui/private-theming: 5.14.8
@mui/styled-engine: 5.14.8
@mui/system: 5.14.8
@mui/types: 7.2.4
@mui/utils: 5.14.8
@mui/x-data-grid: ^6.11.2 => 6.11.2
@mui/x-date-pickers: ^6.10.1 => 6.10.1
@mui/x-tree-view: 6.0.0-alpha.0
@types/react: 18.2.14 => 18.2.14
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
typescript: 5.1.6 => 5.1.6
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.
Assessment
This issue has not been assessed yet.