File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 2
2
[matRippleTrigger] ="_getHostElement() "
3
3
[matRippleDisabled] ="disableRipple "> </ div >
4
4
5
- < div class ="mat-step-icon-state-{{state}} mat-step-icon " [class.mat-step-icon-selected] ="selected ">
5
+ < div
6
+ class ="mat-step-icon-state-{{state}} mat-step-icon "
7
+ [class.mat-step-icon-selected] ="selected "
8
+ aria-hidden ="true ">
6
9
< div class ="mat-step-icon-content " [ngSwitch] ="!!(iconOverrides && iconOverrides[state]) ">
7
10
< ng-container
8
11
*ngSwitchCase ="true "
Original file line number Diff line number Diff line change @@ -444,6 +444,11 @@ describe('MatStepper', () => {
444
444
stepHeaderNativeElements . every ( element => element . querySelector ( '.mat-focus-indicator' ) ) ,
445
445
) . toBe ( true ) ;
446
446
} ) ;
447
+
448
+ it ( 'should hide the header icons from assistive technology' , ( ) => {
449
+ const icon = fixture . nativeElement . querySelector ( '.mat-step-icon' ) ;
450
+ expect ( icon . getAttribute ( 'aria-hidden' ) ) . toBe ( 'true' ) ;
451
+ } ) ;
447
452
} ) ;
448
453
449
454
describe ( 'basic stepper when attempting to set the selected step too early' , ( ) => {
You can’t perform that action at this time.
0 commit comments