File tree Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -507,16 +507,6 @@ describe('MatSlider', () => {
507
507
expect ( sliderInstance . value ) . toBe ( 0.3 ) ;
508
508
} ) ;
509
509
510
- it ( 'should set the truncated value to the aria-valuetext' , ( ) => {
511
- fixture . componentInstance . step = 0.1 ;
512
- fixture . detectChanges ( ) ;
513
-
514
- dispatchSlideEventSequence ( sliderNativeElement , 0 , 0.333333 ) ;
515
- fixture . detectChanges ( ) ;
516
-
517
- expect ( sliderNativeElement . getAttribute ( 'aria-valuetext' ) ) . toBe ( '33' ) ;
518
- } ) ;
519
-
520
510
} ) ;
521
511
522
512
describe ( 'slider with auto ticks' , ( ) => {
Original file line number Diff line number Diff line change @@ -134,13 +134,6 @@ const _MatSliderMixinBase:
134
134
'[attr.aria-valuemax]' : 'max' ,
135
135
'[attr.aria-valuemin]' : 'min' ,
136
136
'[attr.aria-valuenow]' : 'value' ,
137
-
138
- // NVDA and Jaws appear to announce the `aria-valuenow` by calculating its percentage based
139
- // on its value between `aria-valuemin` and `aria-valuemax`. Due to how decimals are handled,
140
- // it can cause the slider to read out a very long value like 0.20000068 if the current value
141
- // is 0.2 with a min of 0 and max of 1. We work around the issue by setting `aria-valuetext`
142
- // to the same value that we set on the slider's thumb which will be truncated.
143
- '[attr.aria-valuetext]' : 'displayValue' ,
144
137
'[attr.aria-orientation]' : 'vertical ? "vertical" : "horizontal"' ,
145
138
'[class.mat-slider-disabled]' : 'disabled' ,
146
139
'[class.mat-slider-has-ticks]' : 'tickInterval' ,
You can’t perform that action at this time.
0 commit comments