Skip to content

Commit bbf8528

Browse files
committed
build: make a11y-demo compatible with ivy template type checking
1 parent 10370ef commit bbf8528

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/a11y-demo/checkbox/checkbox-a11y.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ <h2>Nested checklist</h2>
2020
<div *ngFor="let task of tasks">
2121
<mat-checkbox [(ngModel)]="task.completed"
2222
[checked]="allComplete(task)"
23-
[indeterminate]="someComplete(task.subtasks)"
23+
[indeterminate]="someComplete(task.subtasks!)"
2424
(change)="setAllCompleted(task.subtasks, $event.checked)">
2525
{{task.name}}
2626
</mat-checkbox>
2727
<div class="demo-sub-list">
28-
<div *ngFor="let subtask of task.subtasks">
28+
<div *ngFor="let subtask of task.subtasks!">
2929
<mat-checkbox [(ngModel)]="subtask.completed">
3030
{{subtask.name}}
3131
</mat-checkbox>

src/a11y-demo/chips/chips-a11y.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import {Component} from '@angular/core';
1010
import {MatChipInputEvent, MatSnackBar} from '@angular/material';
11+
import {ThemePalette} from '@angular/material/core';
1112

1213

1314
export interface Person {
@@ -22,7 +23,7 @@ export interface Person {
2223
})
2324
export class ChipsAccessibilityDemo {
2425
visible: boolean = true;
25-
color: string = '';
26+
color: ThemePalette = undefined;
2627
selectable: boolean = true;
2728
removable: boolean = true;
2829
addOnBlur: boolean = true;

src/a11y-demo/grid-list/grid-list-a11y.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class GridListAccessibilityDemo {
3939

4040
fixedCols = 4;
4141
fixedRowHeight = 100;
42-
ratioGutter = 1;
42+
ratioGutter = '1px';
4343
fitListHeight = '400px';
4444
ratio = '4:1';
4545
}

src/a11y-demo/input/input-a11y.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class InputAccessibilityDemo {
2424
email: string;
2525
usd: number;
2626
comment: string;
27-
commentMax = 200;
27+
commentMax = '200';
2828

2929
get passwordType() { return this.showPassword ? 'text' : 'password'; }
3030

0 commit comments

Comments
 (0)