-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
[Tabs] Scrollable tabs don't work on RTL mode #30207
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
Comments
Hey! Thanks for opening the issue. That is weird, it's working fine to me (video attached). To better investigate it, I think it's useful for you to leave more info about your setup (browser version, OS, etc) tabs-scroll.mov |
Hi man thank you so much for replying on me I just recorder this video and you can see it clearly this is exactly what is happening with me inside my project in LTR mode it's woking fine but in RTL it's not as you see I'm going to show you a video and my code in another reply screencast-v4.mui.com-2021.12.16-00_13_19.mp4my browser is chrome latest version my OS is windows 10 |
@mnajdova or @siriwatknp any ideas on what's happening?! |
@Mood-al looks like you are using v4. We do not actively work on it anymore. Can you try to reproduce with v5 (as far as I can see it works as expected)? Also, looks like it works with v4 too (at least on the documentation - https://v4.mui.com/components/tabs/#scrollable-tabs) Make sure you follow this guide when configuring RTL - https://v4.mui.com/guides/right-to-left/ If this didn't help, please provide a codesandbox illustrating the issue. |
Hi Marija thank you so much for replying on me about the v4 version i tried the website you gave me and i took this video same thing happening 😢 screencast-v4.mui.com-2021.12.22-21_09_37.mp4thank you so much for helping me out .. |
Hi again i created a new project in codesandbox using next js and mui v5 you can see it here as you see same issue is appearing now |
Unfortunately, I cannot reproduce both in v4 and v5, and neither on the CodeSandbox. Do you have some system language settings different than English? Can you post the output from |
I just wanted to say that in mui v5 tabs are working just fine at RTL mode |
Are you using Edge? If yes, this is why we need more context to what you use. I will take a look tomorrow again if the is is the case |
No I'm not I'm using chrome but when i ran npx @mui envinfo on vscode it showed edge because maybe they built it on tob of it |
Why did you close it and so far the bug is in the library?? So far i didnt get any kind of solution from you and i dont even know how to fix this issue!!! |
Please do not open new issues on the same matter. If you have a reproduction that we can take a look, or steps of how to reproduce it, leave a comment and re-open the issue. So far, I haven't been able to reproduce it with any of the code snippets that you've shared. @hbjORbj can you re-validate too? |
I made a codesandbox to reproduce the issue but it seems that you aren't able to see it This is https://codesandbox.io/s/stupefied-borg-7u66f And i deployed this example on vercel you can see it from here I opened another issue because it seemed that no one is able to help me here and as i see it's a bug and i tried to solve it but i couldn't |
Hi again |
@mnajdova @Mood-al I can confirm that (1) tab scroll works well on v5 in RTL mode and (2) tab scroll doesn't work well on v4 in RTL mode. As Marija already mentioned, we do not work on v4 anymore. I suggest you to migrate to v5. Here is a migration guide from v4 to v5: https://mui.com/guides/migration-v4/ |
Hey there And here a deployed version of this example https://mui-v5-rtl-tabs.vercel.app/ There is something i noticed that Tabs are working just fine on Firefox but once i use any kind of chromium core based browsers like chrome or edge it stops working on RTL Can you try this example and see if same thing happens to you too? |
Hi, I am using Chrome. Screen.Recording.2021-12-28.at.11.34.59.mov |
It's really odd i dont know why this is happening on my device screencast-codesandbox.io-2021.12.28-14_46_11.mp4 |
Hi there I'm facing the same issue with scrollable tabs on RTL New-Recording-12_28_2021_-11_37_52-PM.mp4have anyone found any solution for this bug?? |
No, it's difficult for Marija or myself to find a fix for this because we can't reproduce this. Would you be able to spend some time on figuring out the source of the error? |
Here is the problem i couldn't find the error and why this is happening What makes it difficult to find is that it works fine on Firefox but when it comes to chrome or edge it doesn't |
Hey, @hbjORbj I tried in my brother's PC it doesn't work properly. Screen.Recording.12-31-2021.7-57-55.PM.mp4There is a bug in this. I request you please re-open this issue. |
Could you please reopen this issue? @hbjORbj? |
@hbjORbj Hey man have anyone found a solution for this issue? |
@Mood-al Hey, I do not currently have the time to investigate into this as I have more important other tasks, and so does the other team members. This is relatively not a high-priority issue. We will look into it when we can for sure. |
Since the issue is missing key information, and has been inactive for 7 days, it has been automatically closed. |
Hi, React.Tabs.component.-.MUI.-.Google.Chrome.2022-01-23.01-51-35.mp4I'm using chrome with windows 10 OS. |
I opened this issue 3 months ago i guess and despite many users have the same issue but it seems the Mui team didn't put this issue as priority I hope they start to debugg it the issue is there on all Material ui versions i tested them all and same thing is happening If you tried to put your page zoom on 110% and then you refreshed the page the tabs will work fine on RTL mode |
Hey guys did anyone find a solution for this bug ?? I have tried all material versions and same issue is appearing on scrollable tabs in rtl my device is working on window 10 but i tried it on my friend's macbook and it works good screencast-mui.com-2022.02.05-02_51_48.mp4 |
@hbjORbj Hey man thank you for reopen it. I was wondering why there is no custom prev / next click functions so we can add our own buttons and I think this would solve the whole issue |
Sorry for late response. I shared this issue with the team as I cannot reproduce the issue on my Mac.
This seems to deserve a new issue. |
I see this issue is really tricky and odd i tried it on many windows devices on some of them it works and on others it doesnt |
I have the same issue in RTL mode and this issue is just in chrome for me and in edge it works well. |
Can you reproduce it and maybe record a video showing it. However I'm building a new react component just to replace the mui tabs with fully support of RTL mode So far it has many small bugs i hope i can fix them and publish it on npm soon i just don't have that much time for it |
Hey guys, I'm facing the same issue, I managed to overlook this issue when it came to mobile responsive as dragging will compensate this issue (in my case), but for full screen is a must, does anyone find a solution to this? |
@hbjORbj Hey again and i think the entire issue is happening inside the conditional elements for instanse i was trying to run this code and i found an issue with the condition because the scrollLeft value is a float so you should use something like this |
@Mood-al Since you can reproduce the error, would you be willing to work on this further and open a PR? Then other community members above who also can reproduce the error can test the issue on your PR. |
Hey guys I'm going to close this issue you can see the demo of it here https://react-tabs-scrollable.vercel.app and here is the npm link of it https://www.npmjs.com/package/react-tabs-scrollable |
I encountered a strange issue with tabs. In RTL, the arrows appeared in the opposite direction. I spent an entire day looking for a fix, as the tabs were displaying correctly in MUI examples. I solved the problem by changing the theme provider import from emotion to mui, which completely resolved the issue. Before: After: |
I faced +- the same issue, and the following solution was good enough for me:
|
This partially works. |
Duplicates
Latest version
Current behavior 😯
Hi guys I'm currentlly using v4 and when i switch to rtl scroll doesnt work when i click on the arrow i even noticed that same issue happening with the offecial doc of material

you can just switch to rtl and see the issue
https://v4.mui.com/components/tabs/
is there any way to fix this ? i even tried to switch to v5 and same issue
Expected behavior 🤔
No response
Steps to reproduce 🕹
Steps:
2.s
3.
4.
s
Context 🔦
No response
Your environment 🌎
No response
The text was updated successfully, but these errors were encountered: