Skip to content

Commit 0bf7ccb

Browse files
Suresh918jelbourn
authored andcommitted
docs(chips): add aria-labels to examples (#15167)
Fixes #15010
1 parent 1bc8bc4 commit 0bf7ccb

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/material-examples/chips-autocomplete/chips-autocomplete-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<mat-form-field class="example-chip-list">
2-
<mat-chip-list #chipList>
2+
<mat-chip-list #chipList aria-label="Fruit selection">
33
<mat-chip
44
*ngFor="let fruit of fruits"
55
[selectable]="selectable"

src/material-examples/chips-input/chips-input-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<mat-form-field class="example-chip-list">
2-
<mat-chip-list #chipList>
2+
<mat-chip-list #chipList aria-label="Fruit selection">
33
<mat-chip *ngFor="let fruit of fruits" [selectable]="selectable"
44
[removable]="removable" (removed)="remove(fruit)">
55
{{fruit.name}}

src/material-examples/chips-overview/chips-overview-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<mat-chip-list>
1+
<mat-chip-list aria-label="Fish selection">
22
<mat-chip>One fish</mat-chip>
33
<mat-chip>Two fish</mat-chip>
44
<mat-chip color="primary" selected>Primary fish</mat-chip>

src/material-examples/chips-stacked/chips-stacked-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<mat-chip-list class="mat-chip-list-stacked">
1+
<mat-chip-list class="mat-chip-list-stacked" aria-label="Color selection">
22
<mat-chip *ngFor="let chip of availableColors" selected [color]="chip.color">
33
{{chip.name}}
44
</mat-chip>

0 commit comments

Comments
 (0)