From 9c923d68b8d13589da893b9ff7101a2f5156f52c Mon Sep 17 00:00:00 2001 From: "stefanorigano (SRI)" Date: Wed, 31 Aug 2022 11:55:09 +0000 Subject: [PATCH] [IMP] web_editor: preserve backend's `black` and `white` colors Add 'black' and 'white' color in the list of backend's $theme-colors to preserve during website's customization. This commit is preparatory to the introduction of dark-mode. task-2710677 Part-of: odoo/odoo#102868 --- addons/web_editor/static/src/scss/bootstrap_overridden.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/scss/bootstrap_overridden.scss b/addons/web_editor/static/src/scss/bootstrap_overridden.scss index b64c0690974..460d51a7424 100644 --- a/addons/web_editor/static/src/scss/bootstrap_overridden.scss +++ b/addons/web_editor/static/src/scss/bootstrap_overridden.scss @@ -35,7 +35,7 @@ $grays: () !default; // prevent-backend-colors-alteration for more information) @if variable-exists('prevent-backend-colors-alteration') and $prevent-backend-colors-alteration { $theme-colors: map-remove($theme-colors, 'primary', 'secondary', 'success', 'info', 'warning', 'danger', 'light', 'dark'); - $grays: map-remove($grays, '100', '200', '300', '400', '500', '600', '700', '800', '900'); + $grays: map-remove($grays, '100', '200', '300', '400', '500', '600', '700', '800', '900', 'black', 'white'); } // Bootstrap use standard variables to define individual colors which are then