Skip to content
Permalink
Browse files

[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>
  • Loading branch information...
nle-odoo committed Mar 15, 2019
1 parent 547e6e3 commit d7ca0357f39f0c33ced2ed61374f863b1c37d207
Showing with 2 additions and 1 deletion.
  1. +2 −1 addons/point_of_sale/static/src/css/pos.css
@@ -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;

0 comments on commit d7ca035

Please sign in to comment.
You can’t perform that action at this time.