Date picker RTL support
See original GitHub issueBug, feature request, or proposal:
Bug
What is the expected behavior?
RTL support
What is the current behavior?
What is the use-case or motivation for changing an existing behavior?
It should look properly when dir="rtl"
is set on the body element
Steps to reproduce
Add dir="rtl"
to body element
Is there anything else we should know?
I was able to get the right look by adding dir="rtl"
directly on the date picker element
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Bootstrap datepicker: RTL is not working - Stack Overflow
I solve this problem by adding those lines in the Site.css file: /*To display datepicker in RTL*/ .datepicker-dropdown { max-width: 300px; } ...
Read more >jQuery DatePicker RTL Support - Demos - Telerik
This demo shows how to set the DatePicker RTL functionality by including the kendo.rtl.[min].css file and wrapping the DatePicker in a div element...
Read more >app-datepicker-rtl - npm
Datepicker element built with lit-element and Material Design 2. This is a fork of app-datepicker by motts. Th fork adds RTL support, which...
Read more >Javascript Calendar RTL mode Example - Mobiscroll
Javascript calendar with complete RTL support. Manual control and built-in right to left languages: Arabic, Hebrew, Farsi.
Read more >1320880 - [DateTimePicker] Add RTL support to date picker
[DateTimePicker] Add RTL support to date picker · Categories · Tracking · People · References · Details · Crash Data · Security ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, I see what you mean now. The issue comes from the fact that when Material opens an overlay (in your case a dialog and a datepicker), it defaults to the direction being
ltr
, unless you’ve passed in something different. I’ve submitted a PR that will default to the direction from the body, but until it gets released you can fix your issue by setting thedirection
explicitly in your dialog config:This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.