Date Picker Arrow Switcher on RTL - Wrong Order #9989
Labels
bug 🐛
Something doesn't work
component: pickers
This is the name of the generic UI component, not the React module!
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example: https://codesandbox.io/s/mui-x-issue-template-forked-phfl5h
Steps:
1.Open the calendar from the date picker in the example, the calendar is using RTL mode for display
2.Noitce the Next/Previous buttons for switching months
Current behavior 😯
When opening the date picker in RTL, for the month arrows, the next and previous button appear switched, i.e. the next button appears to the right while the previous button appears to the left. This resulted in users clicking on the right button thinking that it will go to the previous month, while in fact its taking them to the next month.
Expected behavior 🤔
In RTL mode, for the month arrows, the next button should appear to the left, while the previous button should appear to the right.
Context 🔦
No response
Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: