File tree 2 files changed +7
-0
lines changed 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 10
10
[ngTemplateOutletContext] ="_getIconContext() "> </ ng-container >
11
11
< ng-container *ngSwitchDefault [ngSwitch] ="state ">
12
12
< span *ngSwitchCase ="'number' "> {{_getDefaultTextForState(state)}}</ span >
13
+ < span class ="cdk-visually-hidden "
14
+ *ngIf ="state == 'done' || state == 'edit' ">
15
+ {{_intl.completedScreenReaderLabel}}
16
+ </ span >
13
17
< mat-icon *ngSwitchDefault > {{_getDefaultTextForState(state)}}</ mat-icon >
14
18
</ ng-container >
15
19
</ div >
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ export class MatStepperIntl {
21
21
22
22
/** Label that is rendered below optional steps. */
23
23
optionalLabel : string = 'Optional' ;
24
+
25
+ /** Label that is used to indicate step as completed to screen readers. */
26
+ completedScreenReaderLabel : string = 'Completed' ;
24
27
}
25
28
26
29
You can’t perform that action at this time.
0 commit comments