Skip to content

Commit

Permalink
[ACS-7531] - Search page
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekpluta committed Apr 25, 2024
1 parent 934740a commit 2c9424d
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
  {{ displayValue | translate }}
</span>
<ng-template #showAny><span class="adf-search-filter-ellipsis adf-filter-value">&nbsp;{{ 'SEARCH.FILTER.ANY' | translate }}</span></ng-template>
<mat-icon *ngIf="isPopulated; else disabledIcon">{{ chipIcon }}</mat-icon>
<mat-icon class="adf-search-filter-chip-icon" *ngIf="isPopulated; else disabledIcon">{{ chipIcon }}</mat-icon>
<ng-template #disabledIcon>
<mat-icon>remove</mat-icon>
</ng-template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -37,7 +39,6 @@
}

.adf-search-filter-chip-icon {
padding-top: 5px;
padding-left: 5px;
}

Expand All @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
[matMenuTriggerRestoreFocus]="true">

<span class="adf-search-form-title">{{ getSelected(forms) | translate }}</span>
<mat-icon [class.adf-search-form-icon-selected]="menuTrigger.menuOpen" class="adf-search-form-icon">expand_more</mat-icon>
<mat-icon [class.adf-search-form-icon-selected]="menuTrigger.menuOpen" iconPositionEnd class="adf-search-form-icon">expand_more</mat-icon>
</button>

<mat-menu #menu="matMenu" class="adf-search-form-menu">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
@use '@angular/material' as mat;
@import 'styles/mat-selectors';

.adf-search-form {
&.adf-search-form-button {
justify-content: space-between;
display: flex;
padding: 0 14px 0 16px;
height: 35px;
max-width: 190px;
min-width: 190px;
Expand All @@ -17,7 +21,6 @@
&-title {
max-width: 120px;
min-width: 120px;
font-weight: bold;
font-size: var(--theme-body-1-font-size);
line-height: 24px;
padding-right: 12px;
Expand All @@ -26,7 +29,10 @@
text-align: left;
}

&-icon {
.adf-search-form-icon#{$mat-icon} {
font-size: 24px;
height: 24px;
width: 24px;
border: 2px solid transparent;
border-radius: 6px;
transition: border 500ms ease-out;
Expand Down
2 changes: 2 additions & 0 deletions lib/core/src/lib/styles/_mat-selectors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,5 @@ $mdc-dialog: '.mdc-dialog';
$mat-text-filed-input: '.mdc-text-field__input';
$mat-floating-label-float-above: '.mdc-floating-label--float-above';
$mat-floating-label--required: '.mdc-floating-label--required';
$mat-evolution-chip: '.mdc-evolution-chip';
$mat-standard-chip: '.mat-mdc-standard-chip';

0 comments on commit 2c9424d

Please sign in to comment.