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', () => {
507507 expect ( sliderInstance . value ) . toBe ( 0.3 ) ;
508508 } ) ;
509509
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-
520510 } ) ;
521511
522512 describe ( 'slider with auto ticks' , ( ) => {
Original file line number Diff line number Diff line change @@ -134,13 +134,6 @@ const _MatSliderMixinBase:
134134 '[attr.aria-valuemax]' : 'max' ,
135135 '[attr.aria-valuemin]' : 'min' ,
136136 '[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' ,
144137 '[attr.aria-orientation]' : 'vertical ? "vertical" : "horizontal"' ,
145138 '[class.mat-slider-disabled]' : 'disabled' ,
146139 '[class.mat-slider-has-ticks]' : 'tickInterval' ,
You can’t perform that action at this time.
0 commit comments