|
2 | 2 | <!-- TODO(mtlin): Evaluate trade-offs of using native radio vs. cost of additional bindings. --> |
3 | 3 | <label [attr.for]="inputId" class="mat-radio-label" #label> |
4 | 4 | <!-- The actual 'radio' part of the control. --> |
5 | | - <div class="mat-radio-container"> |
6 | | - <div class="mat-radio-outer-circle"></div> |
7 | | - <div class="mat-radio-inner-circle"></div> |
| 5 | + <span class="mat-radio-container"> |
| 6 | + <span class="mat-radio-outer-circle"></span> |
| 7 | + <span class="mat-radio-inner-circle"></span> |
8 | 8 | <input #input class="mat-radio-input cdk-visually-hidden" type="radio" |
9 | 9 | [id]="inputId" |
10 | 10 | [checked]="checked" |
|
21 | 21 |
|
22 | 22 | <!-- The ripple comes after the input so that we can target it with a CSS |
23 | 23 | sibling selector when the input is focused. --> |
24 | | - <div mat-ripple class="mat-radio-ripple mat-focus-indicator" |
| 24 | + <span mat-ripple class="mat-radio-ripple mat-focus-indicator" |
25 | 25 | [matRippleTrigger]="label" |
26 | 26 | [matRippleDisabled]="_isRippleDisabled()" |
27 | 27 | [matRippleCentered]="true" |
28 | 28 | [matRippleRadius]="20" |
29 | 29 | [matRippleAnimation]="{enterDuration: 150}"> |
30 | 30 |
|
31 | | - <div class="mat-ripple-element mat-radio-persistent-ripple"></div> |
32 | | - </div> |
33 | | - </div> |
| 31 | + <span class="mat-ripple-element mat-radio-persistent-ripple"></span> |
| 32 | + </span> |
| 33 | + </span> |
34 | 34 |
|
35 | 35 | <!-- The label content for radio control. --> |
36 | | - <div class="mat-radio-label-content" [class.mat-radio-label-before]="labelPosition == 'before'"> |
| 36 | + <span class="mat-radio-label-content" [class.mat-radio-label-before]="labelPosition == 'before'"> |
37 | 37 | <!-- Add an invisible span so JAWS can read the label --> |
38 | 38 | <span style="display:none"> </span> |
39 | 39 | <ng-content></ng-content> |
40 | | - </div> |
| 40 | + </span> |
41 | 41 | </label> |
0 commit comments