mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-4294] Added title to clear button and changed its icon type to clear 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
This commit is contained in:
@@ -245,6 +245,7 @@
|
||||
},
|
||||
"BUTTONS": {
|
||||
"CLOSE": "Close",
|
||||
"CLEAR": "Clear",
|
||||
"REMOVE": "Remove",
|
||||
"APPLY": "Apply",
|
||||
"CLEAR-ALL": {
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user