[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) <nby@odoo.com> Signed-off-by: Rodolpho Cammarosano de Lima (rcdl) <rcdl@odoo.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user