From 52ec2d378c69c6036c716ab0be9ac76e4dc462ed Mon Sep 17 00:00:00 2001 From: Goaman Date: Mon, 7 Oct 2019 12:26:16 +0000 Subject: [PATCH] [FIX] web_editor: highlight selected pictogram Before this commit, the selection of a pictogram in the media dialog of the website builder and the mass_mailing was not working. The pictogram already has the class "o_we_attachment_selected" upon selection. This commit allow the class "font-icons-icon" to be included in an existing selector. closes odoo/odoo#38085 Signed-off-by: David Monjoie (dmo) --- addons/web_editor/static/src/scss/wysiwyg.scss | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/addons/web_editor/static/src/scss/wysiwyg.scss b/addons/web_editor/static/src/scss/wysiwyg.scss index 0b086a10f6c..db5db858727 100644 --- a/addons/web_editor/static/src/scss/wysiwyg.scss +++ b/addons/web_editor/static/src/scss/wysiwyg.scss @@ -257,12 +257,12 @@ body .modal { box-shadow: 0px 0px 2px 2px $card-border-color; } } + } - &.o_we_attachment_selected { - &.o_we_attachment_highlight, .o_we_attachment_highlight { - border-color: $o-brand-primary; - box-shadow: 0px 0px 2px 2px $o-brand-primary; - } + .o_we_attachment_selected { + &.o_we_attachment_highlight, .o_we_attachment_highlight, &.font-icons-icon { + border-color: $o-brand-primary; + box-shadow: 0px 0px 2px 2px $o-brand-primary; } } @@ -275,12 +275,6 @@ body .modal { height: 50px; padding: 15px; cursor: pointer; - - &.o_selected { - cursor: auto; - background-color: $o-we-bg-color-dark; - box-shadow: 0px 0px 0px 1px $o-we-color-success; - } } }