Skip to content

Commit 92379c6

Browse files
committed
main - 87f0621 docs(material/chips): fix aria label binding for reactive and template driven form (#30814)
1 parent 96ba39a commit 92379c6

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

docs-content/examples-highlighted/material/chips/chips-reactive-form/chips-reactive-form-example-html.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@for (keyword of reactiveKeywords(); track keyword) {
77
<span class="hljs-tag">&lt;<span class="hljs-name">mat-chip-row</span> (<span class="hljs-attr">removed</span>)=<span class="hljs-string">&quot;removeReactiveKeyword(keyword)&quot;</span>&gt;</span>
88
{{keyword}}
9-
<span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">matChipRemove</span> <span class="hljs-attr">aria-label</span>=<span class="hljs-string">&quot;&#x27;remove reactive form&#x27; + keyword&quot;</span>&gt;</span>
9+
<span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">matChipRemove</span> [<span class="hljs-attr">attr.aria-label</span>]=<span class="hljs-string">&quot;&#x27;remove reactive form&#x27; + keyword&quot;</span>&gt;</span>
1010
<span class="hljs-tag">&lt;<span class="hljs-name">mat-icon</span>&gt;</span>cancel<span class="hljs-tag">&lt;/<span class="hljs-name">mat-icon</span>&gt;</span>
1111
<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
1212
<span class="hljs-tag">&lt;/<span class="hljs-name">mat-chip-row</span>&gt;</span>
@@ -18,4 +18,4 @@
1818
(<span class="hljs-attr">matChipInputTokenEnd</span>)=<span class="hljs-string">&quot;addReactiveKeyword($event)&quot;</span>
1919
/&gt;</span>
2020
<span class="hljs-tag">&lt;/<span class="hljs-name">mat-form-field</span>&gt;</span>
21-
<span class="hljs-tag">&lt;/<span class="hljs-name">section</span>&gt;</span>
21+
<span class="hljs-tag">&lt;/<span class="hljs-name">section</span>&gt;</span>

docs-content/examples-highlighted/material/chips/chips-template-form/chips-template-form-example-html.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@for (keyword of templateKeywords(); track keyword) {
77
<span class="hljs-tag">&lt;<span class="hljs-name">mat-chip-row</span> (<span class="hljs-attr">removed</span>)=<span class="hljs-string">&quot;removeTemplateKeyword(keyword)&quot;</span>&gt;</span>
88
{{keyword}}
9-
<span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">matChipRemove</span> <span class="hljs-attr">aria-label</span>=<span class="hljs-string">&quot;&#x27;remove template form&#x27; + keyword&quot;</span>&gt;</span>
9+
<span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">matChipRemove</span> [<span class="hljs-attr">attr.aria-label</span>]=<span class="hljs-string">&quot;&#x27;remove template form&#x27; + keyword&quot;</span>&gt;</span>
1010
<span class="hljs-tag">&lt;<span class="hljs-name">mat-icon</span>&gt;</span>cancel<span class="hljs-tag">&lt;/<span class="hljs-name">mat-icon</span>&gt;</span>
1111
<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
1212
<span class="hljs-tag">&lt;/<span class="hljs-name">mat-chip-row</span>&gt;</span>

docs-content/examples-source/material/chips/chips-reactive-form/chips-reactive-form-example.html

Lines changed: 2 additions & 2 deletions
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>

docs-content/examples-source/material/chips/chips-template-form/chips-template-form-example.html

Lines changed: 1 addition & 1 deletion
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)