Skip to content

Commit 0a22490

Browse files
authored
Fix Date facet-filter was not highlighting.
1 parent 4e5a72c commit 0a22490

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/shared/search/search-filters/search-filter/search-filter.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@if (active$ | async) {
22
<div class="facet-filter d-block mb-3 p-3"
3+
[class.filter-active]="(appliedFilters$ | async)?.length > 0"
34
[id]="regionId" [attr.aria-labelledby]="toggleId" [ngClass]="{ 'focus': focusBox }" role="region">
45
<button (click)="toggle()" (focusin)="focusBox = true" (focusout)="focusBox = false"
56
class="filter-name d-flex" [attr.aria-controls]="regionId" [id]="toggleId"

src/styles/_global-styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,4 +574,4 @@ ngb-tooltip-window {
574574
background-color: currentColor;
575575
}
576576

577-
ds-search-filter .facet-filter:has([type="checkbox"]:checked) { background: var(--bs-highlight-color); }
577+
ds-search-filter .facet-filter.filter-active { background-color: var(--bs-highlight-color); }

0 commit comments

Comments
 (0)