File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 22 [matRippleTrigger] ="_getHostElement() "
33 [matRippleDisabled] ="disableRipple "> </ div >
44
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 ">
69 < div class ="mat-step-icon-content " [ngSwitch] ="!!(iconOverrides && iconOverrides[state]) ">
710 < ng-container
811 *ngSwitchCase ="true "
Original file line number Diff line number Diff line change @@ -444,6 +444,11 @@ describe('MatStepper', () => {
444444 stepHeaderNativeElements . every ( element => element . querySelector ( '.mat-focus-indicator' ) ) ,
445445 ) . toBe ( true ) ;
446446 } ) ;
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+ } ) ;
447452 } ) ;
448453
449454 describe ( 'basic stepper when attempting to set the selected step too early' , ( ) => {
You can’t perform that action at this time.
0 commit comments