File tree Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -89,17 +89,13 @@ $_md-sys-motion: tokens.md-sys-motion-values();
89
89
);
90
90
}
91
91
92
- // <input> is also the touch target
93
- input {
94
- appearance : none ;
92
+ .touch-target {
95
93
height : 48px ;
96
- margin : 0 ;
97
94
position : absolute ;
98
95
width : 48px ;
99
- cursor : inherit ;
100
96
}
101
97
102
- :host ([touch-target = ' none' ]) input {
98
+ :host ([touch-target = ' none' ]) .touch-target {
103
99
width : 100% ;
104
100
height : 100% ;
105
101
}
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ export class Radio extends radioBaseClass {
99
99
protected override render ( ) {
100
100
const classes = { 'checked' : this . checked } ;
101
101
return html `
102
- < div class ="container ${ classMap ( classes ) } " inert ">
102
+ < div class ="container ${ classMap ( classes ) } " aria-hidden =" true ">
103
103
< md-ripple
104
104
part ="ripple "
105
105
.control =${ this }
@@ -119,13 +119,7 @@ export class Radio extends radioBaseClass {
119
119
< circle class ="inner circle " cx ="10 " cy ="10 " r ="5 " />
120
120
</ svg >
121
121
122
- < input
123
- id ="input "
124
- type ="radio "
125
- tabindex ="-1 "
126
- .checked =${ this . checked }
127
- .value =${ this . value }
128
- ?disabled=${ this . disabled } />
122
+ < div class ="touch-target "> </ div >
129
123
</ div >
130
124
` ;
131
125
}
You can’t perform that action at this time.
0 commit comments