From be005408fba842d4e1c7040b12d79ce81f1c4cc6 Mon Sep 17 00:00:00 2001 From: Mathieu Duckerts-Antoine Date: Thu, 22 Jun 2023 10:47:22 +0000 Subject: [PATCH] [FIX] web: search bar: background color for comparison facet label MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The label of a facet with type "comparison" did not have any background color. We set it to be the same as for the label of a facet of type "groupBy". closes odoo/odoo#126496 X-original-commit: b0527528ee73b503ffbfef491b2389018c119376 Signed-off-by: Michaƫl Mattiello (mcm) --- addons/web/static/src/search/search_bar/search_bar.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/search/search_bar/search_bar.xml b/addons/web/static/src/search/search_bar/search_bar.xml index 52a55878316..347bde76311 100644 --- a/addons/web/static/src/search/search_bar/search_bar.xml +++ b/addons/web/static/src/search/search_bar/search_bar.xml @@ -14,7 +14,7 @@ t-on-click="(ev) => this.onFacetLabelClick(ev.target, facet)" t-att-role="facet.domain ? 'button' : 'img'" t-att-class="{ - 'text-bg-action d-flex align-items-center': facet.type == 'groupBy', + 'text-bg-action d-flex align-items-center': facet.type == 'groupBy' || facet.type == 'comparison', 'btn btn-primary rounded-end-0 p-0': facet.type == 'field' || facet.type == 'filter', 'btn btn-favourite rounded-end-0 p-0': facet.type == 'favorite' }"