From 32c9e59ae660f813792ebb7a24684abbadf239b2 Mon Sep 17 00:00:00 2001 From: Elisabeth Dickinson Date: Wed, 11 Jan 2023 10:34:53 +0000 Subject: [PATCH] [IMP] odoo-theme: Revert $dark color variable to initial $gray-900 This was changed to get a good text/background contrast on the alert-dark (Exercise). By doing so, the .text-dark class generated by BS from the $dark theme-color was gray instead of the intended near-black color. By changing the variable, the contrast issue with the alert was back, to solve this we directly override the alert's background color instead. Part-of: odoo/documentation#3315 --- extensions/odoo_theme/static/scss/bootstrap_overridden.scss | 2 +- extensions/odoo_theme/static/style.scss | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/odoo_theme/static/scss/bootstrap_overridden.scss b/extensions/odoo_theme/static/scss/bootstrap_overridden.scss index 8ba5a965d..7a51b62cd 100644 --- a/extensions/odoo_theme/static/scss/bootstrap_overridden.scss +++ b/extensions/odoo_theme/static/scss/bootstrap_overridden.scss @@ -26,7 +26,7 @@ $teal: #017e84; $primary: $teal; $secondary: $purple; $light: $gray-100; -$dark: $gray-600; +$dark: $gray-900; $success: $green; $info: $blue; $warning: $orange; diff --git a/extensions/odoo_theme/static/style.scss b/extensions/odoo_theme/static/style.scss index c77d2f956..78c0948ba 100644 --- a/extensions/odoo_theme/static/style.scss +++ b/extensions/odoo_theme/static/style.scss @@ -994,6 +994,8 @@ header { &.alert-dark { --o-alert-icon: '#{$i-exercise}'; --o-alert-code-border-color: #{tint-color($dark, 50%)}; + + background: $gray-300; } } }