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

Date Picker Arrow Switcher on RTL - Wrong Order #9989

Closed
2 tasks done
ahamdan-ow opened this issue Aug 10, 2023 · 0 comments · Fixed by #10003
Closed
2 tasks done

Date Picker Arrow Switcher on RTL - Wrong Order #9989

ahamdan-ow opened this issue Aug 10, 2023 · 0 comments · Fixed by #10003
Labels
bug 🐛 Something doesn't work component: pickers This is the name of the generic UI component, not the React module!

Comments

@ahamdan-ow
Copy link

ahamdan-ow commented Aug 10, 2023

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the 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
  I am using Google Chrome Version Version 115.0.5790.171

  System:
    OS: Windows 10 10.0.19045
  Binaries:
    Node: 18.12.1 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 8.5.5 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: Not Found
    Edge: Spartan (44.19041.1266.0), Chromium (115.0.1901.188)
  npmPackages:
    @emotion/react: ^11.11.1 => 11.11.1
    @emotion/styled: ^11.11.0 => 11.11.0
    @mui/base:  5.0.0-beta.10
    @mui/core-downloads-tracker:  5.14.4
    @mui/material: ^5.14.4 => 5.14.4
    @mui/private-theming:  5.14.4
    @mui/styled-engine:  5.13.2
    @mui/system:  5.14.4
    @mui/types:  7.2.4
    @mui/utils:  5.14.4
    @mui/x-date-pickers: ^6.11.0 => 6.11.0
    @types/react: ^18.2.15 => 18.2.20
    react: ^18.2.0 => 18.2.0
    react-dom: ^18.2.0 => 18.2.0
@ahamdan-ow ahamdan-ow added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Aug 10, 2023
@ZeeshanTamboli ZeeshanTamboli transferred this issue from mui/material-ui Aug 10, 2023
@zannager zannager added the component: pickers This is the name of the generic UI component, not the React module! label Aug 10, 2023
@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: pickers This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants