Skip to content
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

Open
kazem3d opened this issue Jan 12, 2025 · 2 comments
Open

Layout breaks with RTL language , especially the sidebar #4595

kazem3d opened this issue Jan 12, 2025 · 2 comments
Labels
scope: toolpad-core Abbreviated to "core" status: waiting for maintainer These issues haven't been looked at yet by a maintainer

Comments

@kazem3d
Copy link

kazem3d commented Jan 12, 2025

Steps to reproduce

Steps:

  1. Open this link to live example: (required)

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.
image

Expected behavior

No response

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: rtl,right to left

@kazem3d kazem3d added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jan 12, 2025
@Janpot
Copy link
Member

Janpot commented Jan 13, 2025

Screenshot 2025-01-13 at 12 18 27

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?

@prakhargupta1 prakhargupta1 added status: waiting for author Issue with insufficient information scope: toolpad-core Abbreviated to "core" and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 13, 2025
@kazem3d
Copy link
Author

kazem3d commented Jan 13, 2025

Screenshot 2025-01-13 at 12 18 27

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 :
here is the codesandbox:
https://codesandbox.io/p/github/kazem3d/mui-toolpad-rtl/main?import=true

@github-actions github-actions bot added status: waiting for maintainer These issues haven't been looked at yet by a maintainer and removed status: waiting for author Issue with insufficient information labels Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: toolpad-core Abbreviated to "core" status: waiting for maintainer These issues haven't been looked at yet by a maintainer
Projects
Status: Backlog
Development

No branches or pull requests

3 participants