File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 92
92
}
93
93
94
94
.link {
95
+ display : grid ;
95
96
height : 100% ;
96
97
outline : none ;
98
+ place-items : center ;
97
99
position : absolute ;
98
100
width : 100% ;
99
101
}
Original file line number Diff line number Diff line change @@ -179,8 +179,7 @@ export class IconButton extends iconButtonBaseClass implements FormSubmitter {
179
179
${ this . renderRipple ( ) }
180
180
${ ! this . selected ? this . renderIcon ( ) : nothing }
181
181
${ this . selected ? this . renderSelectedIcon ( ) : nothing }
182
- ${ this . renderTouchTarget ( ) }
183
- ${ this . href && this . renderLink ( ) }
182
+ ${ this . href ? this . renderLink ( ) : this . renderTouchTarget ( ) }
184
183
</ ${ tag } > ` ;
185
184
}
186
185
@@ -193,7 +192,9 @@ export class IconButton extends iconButtonBaseClass implements FormSubmitter {
193
192
id ="link "
194
193
href ="${ this . href } "
195
194
target ="${ this . target || nothing } "
196
- aria-label ="${ ariaLabel || nothing } "> </ a >
195
+ aria-label ="${ ariaLabel || nothing } ">
196
+ ${ this . renderTouchTarget ( ) }
197
+ </ a >
197
198
` ;
198
199
}
199
200
You can’t perform that action at this time.
0 commit comments