File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 28
28
padding-inline-end : 0 ;
29
29
}
30
30
31
- .trailing.icon {
31
+ .trailing.icon , [ name = " trailing-icon " ]::slotted( * ) {
32
32
color : var (--_trailing-icon-color );
33
33
height : var (--_icon-size );
34
34
width : var (--_icon-size );
35
35
}
36
36
37
+ [name = " trailing-icon" ]::slotted(md-icon) {
38
+ --md-icon-size : var (--_icon-size );
39
+ }
40
+
37
41
:where(:hover ) .trailing.icon {
38
42
color : var (--_hover-trailing-icon-color );
39
43
}
Original file line number Diff line number Diff line change @@ -34,10 +34,12 @@ export function renderRemoveButton({
34
34
@focus=${ focusListener } >
35
35
< md-focus-ring part ="trailing-focus-ring "> </ md-focus-ring >
36
36
< md-ripple ?disabled =${ disabled } > </ md-ripple >
37
- < svg class ="trailing icon " viewBox ="0 96 960 960 " aria-hidden ="true ">
38
- < path
39
- d ="m249 849-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231-231 231Z " />
40
- </ svg >
37
+ < slot name ="trailing-icon ">
38
+ < svg class ="trailing icon " viewBox ="0 96 960 960 " aria-hidden ="true ">
39
+ < path
40
+ d ="m249 849-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231-231 231Z " />
41
+ </ svg >
42
+ </ slot >
41
43
< span class ="touch "> </ span >
42
44
</ button >
43
45
` ;
You can’t perform that action at this time.
0 commit comments