From 35e4e913e82fa80e77780f80c85691b875636c5a Mon Sep 17 00:00:00 2001 From: Brieuc-brd Date: Tue, 11 Oct 2022 07:54:58 +0000 Subject: [PATCH] [FIX] web_editor: `o_table`, fix and adapt border for dark mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prior to this commit, the table border color was only applied to the columns (left and right borders). This commit applies the border color to all borders and adapt the color to be consistent with the dark mode. task-2710677 closes odoo/odoo#103162 X-original-commit: fc8a0653c2e98cbda9c1ff60f3a5ea7347aadd48 Related: odoo/enterprise#32786 Signed-off-by: Adrien Dieudonné (adr) Signed-off-by: Pierre Paridans (app) --- addons/web_editor/__manifest__.py | 1 + .../static/src/js/editor/odoo-editor/src/base_style.scss | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/addons/web_editor/__manifest__.py b/addons/web_editor/__manifest__.py index 140b0d2aed2..618e9074681 100644 --- a/addons/web_editor/__manifest__.py +++ b/addons/web_editor/__manifest__.py @@ -91,6 +91,7 @@ Odoo Web Editor widget. 'web_editor/static/src/components/**/*', ], 'web_editor.assets_tests_styles': [ + ('include', 'web._assets_helpers'), 'web_editor/static/src/js/editor/odoo-editor/src/base_style.scss', 'web_editor/static/src/js/editor/odoo-editor/src/checklist.scss', ], diff --git a/addons/web_editor/static/src/js/editor/odoo-editor/src/base_style.scss b/addons/web_editor/static/src/js/editor/odoo-editor/src/base_style.scss index 350269110c9..2b13e89b82b 100644 --- a/addons/web_editor/static/src/js/editor/odoo-editor/src/base_style.scss +++ b/addons/web_editor/static/src/js/editor/odoo-editor/src/base_style.scss @@ -1,9 +1,12 @@ li.oe-nested { display: block; } -.o_table tr td { - padding: 0.5rem; - border-color: #c9ccd2; +.o_table tr { + border-color: $o-gray-300; + + td { + padding: 0.5rem; + } } .oe-tabs { display: inline-block;