From 8780b47843ca3ccd7be3fa0378727eacf85497d3 Mon Sep 17 00:00:00 2001
From: jacekpluta <73617938+jacekpluta@users.noreply.github.com>
Date: Thu, 25 Apr 2024 12:04:58 +0200
Subject: [PATCH] [ACS-7531] - Search page (#9606)
---
.../search-facet-chip-tabbed.component.html | 2 +-
.../search-facet-chip-tabbed.component.scss | 4 ++++
.../search-filter-chips.component.scss | 12 +++++++++++-
.../search-form/search-form.component.html | 2 +-
.../search-form/search-form.component.scss | 10 ++++++++--
.../dynamic-chip-list.component.scss | 12 ++++++++++++
lib/core/src/lib/styles/_mat-selectors.scss | 4 ++++
7 files changed, 41 insertions(+), 5 deletions(-)
diff --git a/lib/content-services/src/lib/search/components/search-filter-chips/search-facet-chip-tabbed/search-facet-chip-tabbed.component.html b/lib/content-services/src/lib/search/components/search-filter-chips/search-facet-chip-tabbed/search-facet-chip-tabbed.component.html
index 0517cfa58e0..48470bb8d28 100644
--- a/lib/content-services/src/lib/search/components/search-filter-chips/search-facet-chip-tabbed/search-facet-chip-tabbed.component.html
+++ b/lib/content-services/src/lib/search/components/search-filter-chips/search-facet-chip-tabbed/search-facet-chip-tabbed.component.html
@@ -18,7 +18,7 @@
{{ displayValue | translate }}
{{ 'SEARCH.FILTER.ANY' | translate }}
- {{ chipIcon }}
+ {{ chipIcon }}
remove
diff --git a/lib/content-services/src/lib/search/components/search-filter-chips/search-facet-chip-tabbed/search-facet-chip-tabbed.component.scss b/lib/content-services/src/lib/search/components/search-filter-chips/search-facet-chip-tabbed/search-facet-chip-tabbed.component.scss
index fe421ccb654..ba248dbbde6 100644
--- a/lib/content-services/src/lib/search/components/search-filter-chips/search-facet-chip-tabbed/search-facet-chip-tabbed.component.scss
+++ b/lib/content-services/src/lib/search/components/search-filter-chips/search-facet-chip-tabbed/search-facet-chip-tabbed.component.scss
@@ -5,6 +5,10 @@ adf-search-facet-chip-tabbed {
}
}
+ .adf-search-filter-chip-icon {
+ padding-top: 2px;
+ }
+
.adf-search-widget-extra-width {
max-width: 500px;
}
diff --git a/lib/content-services/src/lib/search/components/search-filter-chips/search-filter-chips.component.scss b/lib/content-services/src/lib/search/components/search-filter-chips/search-filter-chips.component.scss
index 44bdc060854..56c5d156f01 100644
--- a/lib/content-services/src/lib/search/components/search-filter-chips/search-filter-chips.component.scss
+++ b/lib/content-services/src/lib/search/components/search-filter-chips/search-filter-chips.component.scss
@@ -1,9 +1,11 @@
@use '@angular/material' as mat;
+@import 'styles/mat-selectors';
.adf-search-filter-chip,
.adf-search-filter-chip-tabbed {
border: 2px solid transparent;
transition: border 500ms ease-in-out;
+ height: 32px;
max-width: 320px;
text-overflow: ellipsis;
overflow: hidden;
@@ -37,7 +39,6 @@
}
.adf-search-filter-chip-icon {
- padding-top: 5px;
padding-left: 5px;
}
@@ -48,3 +49,12 @@
@include mat.elevation(2);
}
}
+
+.adf-search-filter-chip#{$mat-evolution-chip}#{$mat-standard-chip} {
+ margin-top: 0;
+ margin-bottom: 0;
+}
+
+#{$mat-standard-chip} {
+ -webkit-font-smoothing: unset;
+}
diff --git a/lib/content-services/src/lib/search/components/search-form/search-form.component.html b/lib/content-services/src/lib/search/components/search-form/search-form.component.html
index 7e2976fe9ec..f2af1ddd60e 100644
--- a/lib/content-services/src/lib/search/components/search-form/search-form.component.html
+++ b/lib/content-services/src/lib/search/components/search-form/search-form.component.html
@@ -21,7 +21,7 @@
[matMenuTriggerRestoreFocus]="true">
{{ getSelected(forms) | translate }}
- expand_more
+ expand_more