From 24a4cb1ce41f225e1f3458cfa76ca3a2573bc589 Mon Sep 17 00:00:00 2001 From: Brieuc-brd Date: Wed, 26 Jul 2023 16:47:45 +0200 Subject: [PATCH] [IMP] web, website_sale: review active light buttons Prior to this commit, toggle inputs using light color had no active color. This commit adds an active state in order to match the other active colors. task-3097005 Part-of: odoo/odoo#120302 Co-authored-by: qsm-odoo --- addons/web/static/src/scss/bootstrap_review_frontend.scss | 7 +++++++ addons/website_sale/views/templates.xml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/addons/web/static/src/scss/bootstrap_review_frontend.scss b/addons/web/static/src/scss/bootstrap_review_frontend.scss index 5c164c36697..f4b11b3ed35 100644 --- a/addons/web/static/src/scss/bootstrap_review_frontend.scss +++ b/addons/web/static/src/scss/bootstrap_review_frontend.scss @@ -59,6 +59,13 @@ $o-btn-outline-border-width-defaults: () !default; } } +// Highlight '.btn-group's active buttons +.btn-group .btn-light.active { + box-shadow: inset 0 0 0 $border-width $component-active-bg; + border-color: transparent; + background-color: mix($component-active-bg, $light, 10%); +} + // Compensate navbar brand padding if no visible border @if alpha($navbar-dark-toggler-border-color) < 0.001 { .navbar-dark .navbar-toggler { diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index 5bed5628e43..c825e966056 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -476,7 +476,7 @@