File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
tools/public_api_guard/material Expand file tree Collapse file tree 3 files changed +14
-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 " *ngIf ="state === 'done' ">
14
+ {{_intl.completedLabel}}
15
+ </ span >
16
+ < span class ="cdk-visually-hidden " *ngIf ="state === 'edit' ">
17
+ {{_intl.editableLabel}}
18
+ </ span >
13
19
< mat-icon *ngSwitchDefault > {{_getDefaultTextForState(state)}}</ mat-icon >
14
20
</ ng-container >
15
21
</ div >
Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ 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
+ completedLabel : string = 'Completed' ;
27
+
28
+ /** Label that is used to indicate step as editable to screen readers. */
29
+ editableLabel : string = 'Editable' ;
24
30
}
25
31
26
32
Original file line number Diff line number Diff line change @@ -184,6 +184,8 @@ export interface MatStepperIconContext {
184
184
// @public
185
185
export class MatStepperIntl {
186
186
readonly changes: Subject <void >;
187
+ completedLabel: string ;
188
+ editableLabel: string ;
187
189
optionalLabel: string ;
188
190
// (undocumented)
189
191
static ɵfac: i0 .ɵɵFactoryDeclaration <MatStepperIntl , never >;
You can’t perform that action at this time.
0 commit comments