From 03918cd5f0c6478312c39ee7776ec61e2f523ec9 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Thu, 5 Aug 2021 14:45:03 +0000 Subject: [PATCH] [FIX] web_editor: use proper text color for dropdown items in cc envs When inside a specific color preset, active dropdown items' background color is set to that preset's primary color. However, their text color was not properly computed mainly because of [1] which forced other rules as important. [1]: https://github.com/odoo/odoo/commit/2172295cefa1d8780332709bf0c97cfa23def3a5 closes odoo/odoo#74776 X-original-commit: 67fb206e2ef4828712a53052282aa0791edb74e7 Signed-off-by: Quentin Smetz (qsm) --- addons/web_editor/static/src/scss/web_editor.common.scss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/scss/web_editor.common.scss b/addons/web_editor/static/src/scss/web_editor.common.scss index 598224d047e..034378dbaa4 100644 --- a/addons/web_editor/static/src/scss/web_editor.common.scss +++ b/addons/web_editor/static/src/scss/web_editor.common.scss @@ -727,7 +727,11 @@ blockquote { &:active { &, h6 { // Quick fix: sometimes we use h6 in dropdowns @include gradient-bg($-btn-primary-color); - color: color-yiq($-btn-primary-color); + color: color-yiq($-btn-primary-color) !important; + + @include hover-focus { + color: color-yiq($-btn-primary-color) !important; + } } } }