From 952ebac37dc65b3fd62ae211cee1fd45fa63cd47 Mon Sep 17 00:00:00 2001 From: Benoit Socias Date: Fri, 15 Dec 2023 16:00:38 +0100 Subject: [PATCH] [FIX] website: fix border color or button preset preview Since [1] when website was moved to backend, with the introduction of the iframe, the preset previews are replicating the CSS of the page. In [2] the mechanism was adapted to make it faster, but in the new replication the `border-color` of buttons was wrongly copied from the `background-color` of the buttons. This commit uses the right variable instead. [1]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b [2]: https://github.com/odoo/odoo/commit/7f5a9d040348048990b25c271875c77d2c314e4d task-3642550 closes odoo/odoo#146587 X-original-commit: b69658898e6944f86d17460e214c529f68c66a10 Signed-off-by: Quentin Smetz (qsm) Signed-off-by: Benoit Socias (bso) --- addons/website/static/src/components/editor/editor.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/website/static/src/components/editor/editor.scss b/addons/website/static/src/components/editor/editor.scss index 30bcf64a83d..73ff203ad58 100644 --- a/addons/website/static/src/components/editor/editor.scss +++ b/addons/website/static/src/components/editor/editor.scss @@ -118,12 +118,12 @@ .btn-primary { background-color: var(--we-cp-o-cc#{$index}-btn-primary); color: var(--we-cp-o-cc#{$index}-btn-primary-text); - border-color: var(--we-cp-o-cc#{$index}-btn-primary); + border-color: var(--we-cp-o-cc#{$index}-btn-primary-border); } .btn-secondary { background-color: var(--we-cp-o-cc#{$index}-btn-secondary); color: var(--we-cp-o-cc#{$index}-btn-secondary-text); - border-color: var(--we-cp-o-cc#{$index}-btn-secondary); + border-color: var(--we-cp-o-cc#{$index}-btn-secondary-border); } } }