codelab: provide control labels with ARIA

This commit is contained in:
twerske
2021-04-19 12:17:56 -07:00
parent 8d5e708e61
commit e66e83449c

View File

@@ -34,13 +34,16 @@ limitations under the License.
<mat-card-content> <mat-card-content>
<!-- TODO: #8. Provide control labels with ARIA --> <!-- TODO: #8. Provide control labels with ARIA -->
<mat-slider <mat-slider
aria-label="Dumpling order quantity slider"
id="quantity"
name="quantity"
color="primary" color="primary"
class="quantity-slider" class="quantity-slider"
[max]="13" [max]="13"
[min]="1" [min]="1"
[step]="1" [step]="1"
[thumbLabel]="true"
[tickInterval]="1" [tickInterval]="1"
thumbLabel
[(ngModel)]="quantity"> [(ngModel)]="quantity">
</mat-slider> </mat-slider>
</mat-card-content> </mat-card-content>