From 6e600160370229204daeb191bdf3240c7b49462a Mon Sep 17 00:00:00 2001 From: "Robin Lejeune (role)" Date: Fri, 28 Apr 2023 14:24:07 +0000 Subject: [PATCH] [FIX] web_editor: adapt options' icons in RTL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The triangle pointing towards an option in the editor is pointing right and the symbol └ is used to show a sub option in the editor panel. In a RTL setting, this does not make sense and should be mirrored. task-3284274 closes odoo/odoo#125153 X-original-commit: a66ff40b28717617e28387b22bdfe9e468242907 Signed-off-by: Quentin Smetz (qsm) --- addons/web_editor/static/src/scss/wysiwyg_snippets.scss | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss index 5e733d8a355..d4a4b6c061f 100644 --- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss +++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss @@ -275,6 +275,10 @@ // browser default font, we should use a SVG instead. display: inline-block; margin-right: 0.4em; + + .o_rtl & { + transform: scaleX(-1); + } } @for $level from 1 through 3 { .o_we_sublevel_#{$level} { @@ -1703,7 +1707,12 @@ content: '\f0da'; position: static; transform: none; + + .o_rtl & { + transform: scaleX(-1); + } } + &.active { &::after {