[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) <qsm@odoo.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user