Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

Commit e66e834

Browse files
committed
codelab: provide control labels with ARIA
1 parent 8d5e708 commit e66e834

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/app/shop/shop.component.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,16 @@
3434
<mat-card-content>
3535
<!-- TODO: #8. Provide control labels with ARIA -->
3636
<mat-slider
37+
aria-label="Dumpling order quantity slider"
38+
id="quantity"
39+
name="quantity"
3740
color="primary"
3841
class="quantity-slider"
3942
[max]="13"
4043
[min]="1"
4144
[step]="1"
42-
[thumbLabel]="true"
4345
[tickInterval]="1"
46+
thumbLabel
4447
[(ngModel)]="quantity">
4548
</mat-slider>
4649
</mat-card-content>

0 commit comments

Comments
 (0)