File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed
tools/public_api_guard/material Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1010 [ngTemplateOutletContext] ="_getIconContext() "> </ ng-container >
1111 < ng-container *ngSwitchDefault [ngSwitch] ="state ">
1212 < span *ngSwitchCase ="'number' "> {{_getDefaultTextForState(state)}}</ span >
13+ < span class ="cdk-visually-hidden "
14+ *ngIf ="state == 'done' || state == 'edit' ">
15+ {{_intl.completedScreenReaderLabel}}
16+ </ span >
1317 < mat-icon *ngSwitchDefault > {{_getDefaultTextForState(state)}}</ mat-icon >
1418 </ ng-container >
1519 </ div >
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ export class MatStepperIntl {
2121
2222 /** Label that is rendered below optional steps. */
2323 optionalLabel : string = 'Optional' ;
24+
25+ /** Label that is used to indicate step as completed to screen readers. */
26+ completedScreenReaderLabel : string = 'Completed' ;
2427}
2528
2629
Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ export interface MatStepperIconContext {
184184// @public
185185export class MatStepperIntl {
186186 readonly changes: Subject <void >;
187+ completedScreenReaderLabel: string ;
187188 optionalLabel: string ;
188189 // (undocumented)
189190 static ɵfac: i0 .ɵɵFactoryDeclaration <MatStepperIntl , never >;
You can’t perform that action at this time.
0 commit comments