[FIX] point_of_sale: numpad left-to-right in arabic
A numpad in right-to-left language is not right-to-left.
So with this change we keep numbers in the order:
1 2 3
4 5 6
7 8 9
and not how it was currently with RTL support:
3 2 1
6 5 4
9 8 7
We used the directive `/*rtl:ignore*/` that prevent rtlcss to mirror a
rule but this also could have done with eg.
.o_rtl .pos .numpad button { direction: right; }
.o_rtl .pos .popup-numpad { direction: rtl; }
so when the reversed is reversed (only in rtl) we get back the original.
opw-1950001
closes #31888
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
This commit is contained in:
@@ -731,7 +731,7 @@ td {
|
||||
border-top-right-radius: 4px;
|
||||
}
|
||||
.pos .numpad button {
|
||||
float: left;
|
||||
float: left/*rtl:ignore*/; /* rtlcss forced to keep ltr */
|
||||
height: 54px;
|
||||
width: 54px;
|
||||
font-weight: bold;
|
||||
@@ -2350,6 +2350,7 @@ td {
|
||||
margin-right: 3px;
|
||||
}
|
||||
.pos .popup-numpad {
|
||||
direction: ltr/*rtl:ignore*/; /* rtlcss forced to keep ltr */
|
||||
margin: 12px auto;
|
||||
text-align: center;
|
||||
width: 254px;
|
||||
|
||||
Reference in New Issue
Block a user