-
-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
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
Layout breaks with RTL language , especially the sidebar #4595
Comments
It seems to work when the docs are set to rtl, are you sure you followed the steps in https://mui.com/material-ui/customization/right-to-left/#1-set-the-html-direction? If not, could you provide a reproduction in the form of a codesandbox/stackblitz? Perhaps we need a specific demo for this in the docs? |
I followed all the rtl steps : |
Hey, take a look at step 3 of the guide in https://mui.com/material-ui/customization/right-to-left/#3-configure-rtl-style-plugin (Configure RTL style plugin). You need to use Also not sure if it's necessary to pass a custom theme to the AppProvider with const theme = createTheme({
direction: 'rtl',
cssVariables: {
colorSchemeSelector: 'data-toolpad-color-scheme',
},
colorSchemes: { dark: true },
}); Feel free to let us know if changing the theme also ends up being necessary, as if it is we can add that extra step to the Toolpad docs. |
Steps to reproduce
Steps:
Current behavior
When switching the language to a right-to-left (RTL) layout in MUI Toolpad, the entire page layout breaks. The issue is particularly noticeable with the sidebar, which does not shift to the right side as expected. Instead, it remains on the left or gets misaligned.
Expected behavior
No response
Context
No response
Your environment
npx @mui/envinfo
Search keywords: rtl,right to left
The text was updated successfully, but these errors were encountered: