From 0fe09d713e7e627b814c5f2b03f7ba730ff9c078 Mon Sep 17 00:00:00 2001 From: Rodolpho Lima Date: Fri, 3 Nov 2023 14:40:53 +0100 Subject: [PATCH] [FIX] web_editor: link_in_selection style outside editable Before this commit, the CSS properties defined by the `o_link_in_selection` class could be applied to a link outside the editable. In particular, the link preview in the LinkDialog widget would display the visual indicator of a link in selection, even though it is not editable nor selected (this happens because the link preview contains the classes of the original link being edited). As the styling provided by `.o_link_in_selection` is only meant to be applied to links inside the editable, this commit makes sure the CSS rule is specific about that. task-3580546 closes odoo/odoo#146679 X-original-commit: b7664dc8e8a0a7909101f45d5a58473ca64d71ca Signed-off-by: Nicolas Bayet (nby) Signed-off-by: Rodolpho Cammarosano de Lima (rcdl) --- .../web_editor/static/src/js/editor/odoo-editor/src/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/editor/odoo-editor/src/style.scss b/addons/web_editor/static/src/js/editor/odoo-editor/src/style.scss index 9cef14644c5..9321ab0bbc3 100644 --- a/addons/web_editor/static/src/js/editor/odoo-editor/src/style.scss +++ b/addons/web_editor/static/src/js/editor/odoo-editor/src/style.scss @@ -119,7 +119,7 @@ } } -a.o_link_in_selection:not(.btn) { +.odoo-editor-editable a.o_link_in_selection:not(.btn) { background-color: #a6e3e2; color: black !important; border: 1px dashed #008f8c;