Skip to content

Commit 87f0621

Browse files
docs(material/chips): fix aria label binding for reactive and template driven form (#30814)
Fixes the aria-label binding of the remove keyword button in chips reative and template driven form. The aria-label used string concatenation with an attribute instead of a property binding.
1 parent 5229fe0 commit 87f0621

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: src/components-examples/material/chips/chips-reactive-form/chips-reactive-form-example.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h4>Chips inside of a Reactive form</h4>
66
@for (keyword of reactiveKeywords(); track keyword) {
77
<mat-chip-row (removed)="removeReactiveKeyword(keyword)">
88
{{keyword}}
9-
<button matChipRemove aria-label="'remove reactive form' + keyword">
9+
<button matChipRemove [attr.aria-label]="'remove reactive form' + keyword">
1010
<mat-icon>cancel</mat-icon>
1111
</button>
1212
</mat-chip-row>
@@ -18,4 +18,4 @@ <h4>Chips inside of a Reactive form</h4>
1818
(matChipInputTokenEnd)="addReactiveKeyword($event)"
1919
/>
2020
</mat-form-field>
21-
</section>
21+
</section>

Diff for: src/components-examples/material/chips/chips-template-form/chips-template-form-example.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h4>Chips inside of a Template-driven form</h4>
66
@for (keyword of templateKeywords(); track keyword) {
77
<mat-chip-row (removed)="removeTemplateKeyword(keyword)">
88
{{keyword}}
9-
<button matChipRemove aria-label="'remove template form' + keyword">
9+
<button matChipRemove [attr.aria-label]="'remove template form' + keyword">
1010
<mat-icon>cancel</mat-icon>
1111
</button>
1212
</mat-chip-row>

0 commit comments

Comments
 (0)