File tree Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,9 @@ export type ProgressBarMode = 'determinate' | 'indeterminate' | 'buffer' | 'quer
50
50
'role' : 'progressbar' ,
51
51
'aria-valuemin' : '0' ,
52
52
'aria-valuemax' : '100' ,
53
+ // set tab index to -1 so screen readers will read the aria-label
54
+ // Note: there is a known issue with JAWS that does not read progressbar aria labels on FireFox
55
+ 'tabindex' : '-1' ,
53
56
'[attr.aria-valuenow]' : '(mode === "indeterminate" || mode === "query") ? null : value' ,
54
57
'[attr.mode]' : 'mode' ,
55
58
'class' : 'mat-mdc-progress-bar' ,
Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ const BASE_STROKE_WIDTH = 10;
58
58
host : {
59
59
'role' : 'progressbar' ,
60
60
'class' : 'mat-mdc-progress-spinner mdc-circular-progress' ,
61
+ // set tab index to -1 so screen readers will read the aria-label
62
+ // Note: there is a known issue with JAWS that does not read progressbar aria labels on FireFox
63
+ 'tabindex' : '-1' ,
61
64
'[class._mat-animation-noopable]' : `_noopAnimations` ,
62
65
'[style.width.px]' : 'diameter' ,
63
66
'[style.height.px]' : 'diameter' ,
Original file line number Diff line number Diff line change @@ -92,6 +92,9 @@ let progressbarId = 0;
92
92
'role' : 'progressbar' ,
93
93
'aria-valuemin' : '0' ,
94
94
'aria-valuemax' : '100' ,
95
+ // set tab index to -1 so screen readers will read the aria-label
96
+ // Note: there is a known issue with JAWS that does not read progressbar aria labels on FireFox
97
+ 'tabindex' : '-1' ,
95
98
'[attr.aria-valuenow]' : '(mode === "indeterminate" || mode === "query") ? null : value' ,
96
99
'[attr.mode]' : 'mode' ,
97
100
'class' : 'mat-progress-bar' ,
Original file line number Diff line number Diff line change @@ -109,6 +109,9 @@ const INDETERMINATE_ANIMATION_TEMPLATE = `
109
109
host : {
110
110
'role' : 'progressbar' ,
111
111
'class' : 'mat-progress-spinner' ,
112
+ // set tab index to -1 so screen readers will read the aria-label
113
+ // Note: there is a known issue with JAWS that does not read progressbar aria labels on FireFox
114
+ 'tabindex' : '-1' ,
112
115
'[class._mat-animation-noopable]' : `_noopAnimations` ,
113
116
'[style.width.px]' : 'diameter' ,
114
117
'[style.height.px]' : 'diameter' ,
You can’t perform that action at this time.
0 commit comments