summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2020-03-26 10:30:55 +0000
committerNicolas Lempereur <nle@odoo.com>2020-03-30 13:50:04 +0000
commitb53cf339e4e3728672ad2a8d505878274f4294c4 (patch)
treecc7bd4146c4a5f01be2a83ed5ab779c9cab393f3 /addons/web/static/src/js/views/basic
parent8ccdbea9a7559316d9ea5fa040868d00305d0b79 (diff)
[FIX] web,*: phone number ltr even in rtl language
Currently there is two ways in view to have a phone number displayed in LTR in a RTL language: - have `widget="phone"` on a field - have a class o_force_ltr on the field But this is currently done very rarely and fail in list view because the direction of data cells is used, eg.: ``` <div style="direction:rtl"> <table><tr><td style="direction:ltr"> <span>+1 2 3</span> </td></tr><tr><td> <span style="direction:ltr">+4 5 6</span> </td>/tr></table> </div> ``` will be displayed as: +1 2 3 6 5 4+ In this commit, we use unicode-bidi* to optionally add an additional level of embedding so direction is taken into account by the bidirectional algorithm. This commit also adds o_force_ltr class or phone widget on phone fields where it is not already defined. *: https://drafts.csswg.org/css-writing-modes-3/#propdef-unicode-bidi opw-2224828 closes #48425 closes odoo/odoo#48588 X-original-commit: ab067218e069f0a92610c3f0d4137e563e47755c Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions