Skip to content

Commit

Permalink
[ACS-4294] Added title to clear button and changed its icon type to c…
Browse files Browse the repository at this point in the history
…lear from close (#8270)

* Added label to clear button and changed icon from close to clear

* Added the label to icon

* changed from property binding to attribute binding
  • Loading branch information
arohilaGL authored Feb 23, 2023
1 parent 7028910 commit b5310f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/content-services/src/lib/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@
},
"BUTTONS": {
"CLOSE": "Close",
"CLEAR": "Clear",
"REMOVE": "Remove",
"APPLY": "Apply",
"CLEAR-ALL": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
<input matInput placeholder="{{ 'SEARCH.FILTER.ACTIONS.SEARCH' | translate }}"
[attr.data-automation-id]="'facet-result-filter-'+field.label" [(ngModel)]="field.buckets.filterText">
<button *ngIf="field.buckets.filterText" mat-button matSuffix mat-icon-button
[attr.title]="'SEARCH.FILTER.BUTTONS.CLEAR' | translate"
(click)="field.buckets.filterText = ''">
<mat-icon role="button" [attr.aria-label]="'SEARCH.FILTER.BUTTONS.CLOSE' | translate">close</mat-icon>
<mat-icon role="button" [attr.aria-label]="'SEARCH.FILTER.BUTTONS.CLEAR' | translate">clear</mat-icon>
</button>
</mat-form-field>
</div>
Expand Down

0 comments on commit b5310f6

Please sign in to comment.