[FIX] web: search bar: background color for comparison facet label

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) <mcm@odoo.com>
This commit is contained in:
Mathieu Duckerts-Antoine
2023-06-27 13:44:23 +02:00
parent 842aeacb56
commit be005408fb
@@ -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'
}"