Skip to content

Commit ce1ba49

Browse files
[ACS-10238] Fixed screen reading for search clear input and save search close dialog icons (#4836)
1 parent c47e1e0 commit ce1ba49

File tree

4 files changed

+25
-5
lines changed

4 files changed

+25
-5
lines changed

projects/aca-content/src/lib/components/search/search-input-control/search-input-control.component.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,16 @@
2424
[placeholder]="'SEARCH.INPUT.PLACEHOLDER' | translate"
2525
autocomplete="off"
2626
/>
27-
27+
2828
<div matSuffix>
29-
<button mat-icon-button (click)="clear()">
29+
<button
30+
mat-icon-button
31+
(click)="clear()"
32+
[attr.aria-label]="'COMMON.CLEAR' | translate"
33+
[attr.title]="'COMMON.CLEAR' | translate"
34+
class="app-search-input-control-clear-button">
3035
<mat-icon *ngIf="searchFieldFormControl.value.length" class="app-suffix-icon">clear</mat-icon>
3136
</button>
3237
</div>
3338
</mat-form-field>
34-
</div>
39+
</div>

projects/aca-content/src/lib/components/search/search-input-control/search-input-control.component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,9 @@ $search-height: 64px;
2929
&-input {
3030
letter-spacing: -0.7px;
3131
}
32+
33+
.app-search-input-control-clear-button {
34+
margin-right: 1.5px;
35+
}
3236
}
3337
}

projects/aca-content/src/lib/components/search/search-input/search-input.component.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@
2020
<div matSuffix>
2121
<mat-icon class="app-suffix-icon">arrow_drop_down</mat-icon>
2222

23-
<button class="aca-search-input--close-button" mat-icon-button [attr.aria-label]="'SEARCH.CLOSE_BUTTON.ARIA_LABEL' | translate" (click)="exitSearch()">
23+
<button
24+
class="aca-search-input--close-button"
25+
mat-icon-button
26+
[attr.aria-label]="'SEARCH.CLOSE_BUTTON.ARIA_LABEL' | translate"
27+
[attr.title]="'SEARCH.CLOSE_BUTTON.ARIA_LABEL' | translate"
28+
(click)="exitSearch()">
2429
<mat-icon class="app-suffix-icon">close</mat-icon>
2530
</button>
2631
</div>

projects/aca-content/src/lib/components/search/search-save/dialog/save-search-dialog.component.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
<div class="aca-save-search-dialog__header">
22
<h2 class="aca-save-search-dialog__title">{{"APP.BROWSE.SEARCH.SAVE_SEARCH.MODAL_HEADER" | translate}}</h2>
3-
<button mat-icon-button mat-dialog-close><mat-icon>close</mat-icon></button>
3+
<button
4+
mat-icon-button
5+
mat-dialog-close
6+
[attr.aria-label]="'CLOSE' | translate | titlecase"
7+
[attr.title]="'CLOSE' | translate | titlecase">
8+
<mat-icon>close</mat-icon>
9+
</button>
410
</div>
511

612

0 commit comments

Comments
 (0)