File tree Expand file tree Collapse file tree 2 files changed +27
-23
lines changed Expand file tree Collapse file tree 2 files changed +27
-23
lines changed Original file line number Diff line number Diff line change 1
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
+ < input #input
5
+ class ="mat-checkbox-input cdk-visually-hidden " type ="checkbox "
6
+ [id] ="inputId "
7
+ [required] ="required "
8
+ [checked] ="checked "
9
+ [value] ="value "
10
+ [disabled] ="disabled "
11
+ [name] ="name "
12
+ [tabIndex] ="tabIndex "
13
+ [indeterminate] ="indeterminate "
14
+ [attr.aria-label] ="ariaLabel "
15
+ [attr.aria-labelledby] ="ariaLabelledby "
16
+ (change) ="_onInteractionEvent($event) "
17
+ (click) ="_onInputClick($event) ">
4
18
< div md-ripple class ="mat-checkbox-ripple "
5
19
[mdRippleTrigger] ="label "
6
20
[mdRippleDisabled] ="_isRippleDisabled() "
23
37
</ div >
24
38
25
39
< span class ="mat-checkbox-label " #labelWrapper >
40
+ <!-- Add an invisible span so JAWS can read the label -->
41
+ < span style ="display:none "> </ span >
26
42
< ng-content > </ ng-content >
27
43
</ span >
28
44
</ label >
29
- < input #input
30
- class ="mat-checkbox-input cdk-visually-hidden " type ="checkbox "
31
- [id] ="inputId "
32
- [required] ="required "
33
- [checked] ="checked "
34
- [value] ="value "
35
- [disabled] ="disabled "
36
- [name] ="name "
37
- [tabIndex] ="tabIndex "
38
- [indeterminate] ="indeterminate "
39
- [attr.aria-label] ="ariaLabel "
40
- [attr.aria-labelledby] ="ariaLabelledby "
41
- (change) ="_onInteractionEvent($event) "
42
- (click) ="_onInputClick($event) ">
Original file line number Diff line number Diff line change 10
10
[mdRippleDisabled] ="_isRippleDisabled() "
11
11
[mdRippleCentered] ="true "> </ div >
12
12
</ div >
13
+ < input #input class ="mat-radio-input cdk-visually-hidden " type ="radio "
14
+ [id] ="inputId "
15
+ [checked] ="checked "
16
+ [disabled] ="disabled "
17
+ [name] ="name "
18
+ [attr.aria-label] ="ariaLabel "
19
+ [attr.aria-labelledby] ="ariaLabelledby "
20
+ (change) ="_onInputChange($event) "
21
+ (click) ="_onInputClick($event) ">
13
22
<!-- The label content for radio control. -->
14
23
< div class ="mat-radio-label-content " [class.mat-radio-label-before] ="labelPosition == 'before' ">
24
+ <!-- Add an invisible span so JAWS can read the label -->
25
+ < span style ="display:none "> </ span >
15
26
< ng-content > </ ng-content >
16
27
</ div >
17
28
</ label >
18
- < input #input class ="mat-radio-input cdk-visually-hidden " type ="radio "
19
- [id] ="inputId "
20
- [checked] ="checked "
21
- [disabled] ="disabled "
22
- [name] ="name "
23
- [attr.aria-label] ="ariaLabel "
24
- [attr.aria-labelledby] ="ariaLabelledby "
25
- (change) ="_onInputChange($event) "
26
- (click) ="_onInputClick($event) ">
You can’t perform that action at this time.
0 commit comments