summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2020-05-28 10:04:58 +0000
committerqsm-odoo <qsm@odoo.com>2020-06-02 09:42:19 +0000
commit66c99b86b38ea3c5771bdc0e47d7e3249c862adb (patch)
tree337399f897ec5c9a1594457fb07115e3aa1abbd2 /addons/web_editor/static/src
parent5953c4df6b9c08519f64a65c1cf5d5558d59f7d4 (diff)
[IMP] web, *: stop automatic color for text for transparent bg classes
* web_editor Now, if the opacity of the bg color for a bg classes is lower than x (currently 0.3), the class will only control the bg and not the text and other components anymore. This behavior is disabled for presets though (otherwise the text color would be "undefined"). Part of https://github.com/odoo/odoo/pull/45856 task-2197038
Diffstat (limited to 'addons/web_editor/static/src')
-rw-r--r--addons/web_editor/static/src/scss/web_editor.common.scss2
1 files changed, 1 insertions, 1 deletions
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 08a202263fc..7da88635a5f 100644
--- a/addons/web_editor/static/src/scss/web_editor.common.scss
+++ b/addons/web_editor/static/src/scss/web_editor.common.scss
@@ -615,7 +615,7 @@ blockquote {
// bg and text utility classes. **
.o_cc#{$index} {
// Background & Text
- @include o-bg-color(o-color($-bg), o-color($-text), $important: false);
+ @include o-bg-color(o-color($-bg), o-color($-text), $important: false, $yiq-min-opacity-threshold: 0);
#{$o-color-extras-nesting-selector} {
// Headings