[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#105255

X-original-commit: 8d396fd8800baf29a9242987b610e3bb7b9da265
Signed-off-by: Walid Hanniche (waha) <waha@odoo.com>
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
Walid HANNICHE (waha)
2022-11-08 08:44:14 +01:00
parent d958068582
commit 6839d21f3c
@@ -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;
}
}
}