-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Making default theme RTL won't apply to some components #3348
Comments
I've made further inspections on next, back buttons and why their icons won't flip, turns out material-ui
but |
I made a gist to show how to fix it, can I make this into a pull request? |
Hi, thanks for reporting the issue. It's very difficult to spot any changes in a gist. Please open a pull request and we'll do our best to review it and iterate with you. |
Thanks for the bug report. Please note that we don't have the need or the ability to test admins with RTL turned on. We'll need help from the community to fix that one, so PRs are welcome. |
Fixed by #4496 |
What you were expecting:
for all the components to flip when I specify RTL in theme and
dir="rtl"
on body tagWhat happened instead:
setting rtl on theme does absolutely nothing.
As you can see many components are not RTL, icons are not flipped, paddings are not flipped, there is
text-align: left;
defined on the body.I made list and edit components rtl using a jssProvider like:
Then use it with list and edit and create components:
Steps to reproduce:
1-Create an RTL theme:
2-Pass it to Admin component:
There is very little badly written documentation and answers regarding these issues, so any help is appreciated, thanks.
Environment
The text was updated successfully, but these errors were encountered: