We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link to live example: codesandbox
Tested on RadioButton, Select, and CheckBox
position is set to absolute by default is causing un-expected behavior when used in RTL. as shown in codesandbox demo.
absolute
position is set to unset fixed the issue...
unset
No response
npx @mui/envinfo
System: OS: Windows 10 10.0.22621 Binaries: Node: 18.6.0 - C:\kernal\nodejs\node.EXE Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD npm: 9.7.2 - C:\kernal\nodejs\npm.CMD Browsers: Chrome: 116.0.5845.180 Edge: Spartan (44.22621.2215.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.12 @mui/core-downloads-tracker: 5.14.8 @mui/icons-material: ^5.14.3 => 5.14.6 @mui/joy: 5.0.0-beta.5 => 5.0.0-beta.5 @mui/material: ^5.14.8 => 5.14.8 @mui/system: ^5.14.8 => 5.14.8 @mui/types: 7.2.4 @mui/utils: ^5.14.7 => 5.14.8 @types/react: 18.2.21 react: ^18.2.0 => 18.2.0 react-dom: ^18.2.0 => 18.2.0 styled-components: ^5.3.11 => 5.3.11
The text was updated successfully, but these errors were encountered:
As documented in https://mui.com/material-ui/guides/right-to-left/, you need to apply the CSS post processor on theme provider for RTL to work as expected.
Forked your sandbox with a demo: https://codesandbox.io/s/rtl-position-unset-forked-q4rt23?file=/src/App.js
Notice how ThemeProvider accepts a locale (unused) prop. You can use it to switch between LTR and RTL layouts.
ThemeProvider
locale
Sorry, something went wrong.
Mark this as docs improvement.
siriwatknp
No branches or pull requests
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example:
codesandbox
Current behavior 😯
Tested on RadioButton, Select, and CheckBox
position is set to
absolute
by default is causing un-expected behavior when used in RTL. as shown in codesandbox demo.Expected behavior 🤔
position is set to
unset
fixed the issue...Context 🔦
No response
Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: