From 89af38d9171ce8005e968d73331a7d8394a2b8ef Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Mon, 6 Jul 2020 14:00:15 +0000 Subject: [PATCH] [FIX] web_editor: prevent o-apply-colors to force important rules The mixin was inconsistent: depending on the color, the created rules were `!important` or not. This causes bugs with new master features. closes odoo/odoo#54151 X-original-commit: 83d8c8b66bd9e58b08fe0aa66d2be7bab691ce3e Signed-off-by: Quentin Smetz (qsm) --- addons/web_editor/static/src/scss/web_editor.variables.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/scss/web_editor.variables.scss b/addons/web_editor/static/src/scss/web_editor.variables.scss index c6301e6da2d..fd89f662567 100644 --- a/addons/web_editor/static/src/scss/web_editor.variables.scss +++ b/addons/web_editor/static/src/scss/web_editor.variables.scss @@ -437,6 +437,6 @@ $o-color-extras-nesting-selector: '&, .o_colored_level &'; // be avoided and use the class in XML if possible. @extend .o_cc#{$-related-color}; } @else { - @include o-bg-color(o-color($-related-color), $background: $background); + @include o-bg-color(o-color($-related-color), $background: $background, $important: false); } }