File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 1
- < label class ="mat-checkbox-layout " #label >
1
+ < label [attr.for] =" inputId " class ="mat-checkbox-layout " #label >
2
2
< div class ="mat-checkbox-inner-container "
3
3
[class.mat-checkbox-inner-container-no-side-margin] ="!_hasLabel() ">
4
4
< input #input
36
36
</ div >
37
37
</ div >
38
38
< span class ="mat-checkbox-label " #labelWrapper >
39
+ <!-- Add an invisible span so JAWS can read the label -->
40
+ < span style ="display:none "> </ span >
39
41
< ng-content > </ ng-content >
40
42
</ span >
41
43
</ label >
Original file line number Diff line number Diff line change 12
12
</ div >
13
13
14
14
< input #input class ="mat-radio-input cdk-visually-hidden " type ="radio "
15
- [id] ="inputId "
16
- [checked] ="checked "
17
- [disabled] ="disabled "
18
- [name] ="name "
19
- [attr.aria-label] ="ariaLabel "
20
- [attr.aria-labelledby] ="ariaLabelledby "
21
- (change) ="_onInputChange($event) "
22
- (click) ="_onInputClick($event) ">
15
+ [id] ="inputId "
16
+ [checked] ="checked "
17
+ [disabled] ="disabled "
18
+ [name] ="name "
19
+ [attr.aria-label] ="ariaLabel "
20
+ [attr.aria-labelledby] ="ariaLabelledby "
21
+ (change) ="_onInputChange($event) "
22
+ (click) ="_onInputClick($event) ">
23
23
24
24
<!-- The label content for radio control. -->
25
25
< div class ="mat-radio-label-content " [class.mat-radio-label-before] ="labelPosition == 'before' ">
26
+ <!-- Add an invisible span so JAWS can read the label -->
27
+ < span style ="display:none "> </ span >
26
28
< ng-content > </ ng-content >
27
29
</ div >
28
30
</ label >
You can’t perform that action at this time.
0 commit comments