From d7ca0357f39f0c33ced2ed61374f863b1c37d207 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Fri, 15 Mar 2019 16:37:45 +0000 Subject: [PATCH] [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) --- addons/point_of_sale/static/src/css/pos.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/point_of_sale/static/src/css/pos.css b/addons/point_of_sale/static/src/css/pos.css index 8ae3d0d7687..45afabd68c7 100644 --- a/addons/point_of_sale/static/src/css/pos.css +++ b/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;