Skip to content
Snippets Groups Projects
Commit 8d396fd8 authored by Walid HANNICHE (waha)'s avatar Walid HANNICHE (waha)
Browse files

[FIX] web: time picker should always be LTR


Steps to reproduce:
1-set language to an LTR language (arabic / hebrew...)
2-select any field with the date-time range widget (eg: planning>add)
3-the hour and the minute selection is reversed.

Bug:
the hours and minutes order depends on the language orientation where
they should always follow this format HH:MM

Fix:
force the time to be displayed Left To Right regardless of language

opw-2953221

closes odoo/odoo#105233

X-original-commit: 83edc563
Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
Signed-off-by: default avatarWalid Hanniche (waha) <waha@odoo.com>
parent 95920a43
No related branches found
No related tags found
No related merge requests found
......@@ -121,15 +121,19 @@
}
}
.calendar-time select {
&.hourselect, &.minuteselect, &.secondselect, &.ampmselect {
display: initial;
border-color: var(--daterangepicker__select-border-color);
background-color: var(--daterangepicker__select-bg);
color: var(--daterangepicker__select-color);
-webkit-appearance: menulist-button;
-moz-appearance: menulist-button;
appearance: menulist-button;
.calendar-time {
/*rtl:ignore*/
direction:ltr;
select {
&.hourselect, &.minuteselect, &.secondselect, &.ampmselect {
display: initial;
border-color: var(--daterangepicker__select-border-color);
background-color: var(--daterangepicker__select-bg);
color: var(--daterangepicker__select-color);
-webkit-appearance: menulist-button;
-moz-appearance: menulist-button;
appearance: menulist-button;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment