File tree Expand file tree Collapse file tree 3 files changed +11
-13
lines changed Expand file tree Collapse file tree 3 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 35
35
width : var (--_icon-size );
36
36
}
37
37
38
- [name = " remove-trailing-icon" ]::slotted(md-icon) {
39
- --md-icon-size : var (--_icon-size );
40
- color : inherit ;
41
- }
42
-
43
38
:where(:hover ) .trailing.icon {
44
39
color : var (--_hover-trailing-icon-color );
45
40
}
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ export abstract class Chip extends LitElement {
87
87
< div class ="container ${ classMap ( this . getContainerClasses ( ) ) } ">
88
88
${ this . renderContainerContent ( ) }
89
89
</ div >
90
+ < slot > </ slot >
90
91
` ;
91
92
}
92
93
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import '../../ripple/ripple.js';
9
9
10
10
import { html , nothing } from 'lit' ;
11
11
12
- import { MultiActionChip } from './multi-action- chip.js' ;
12
+ import { Chip } from './chip.js' ;
13
13
14
14
interface RemoveButtonProperties {
15
15
ariaLabel : string ;
@@ -34,18 +34,20 @@ 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
- < slot name ="remove-trailing-icon " class ="trailing icon ">
38
- < svg 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 >
37
+ < span class ="trailing icon ">
38
+ < slot name ="remove-trailing-icon ">
39
+ < svg viewBox ="0 96 960 960 " aria-hidden ="true ">
40
+ < path
41
+ 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 " />
42
+ </ svg >
43
+ </ slot >
44
+ </ span >
43
45
< span class ="touch "> </ span >
44
46
</ button >
45
47
` ;
46
48
}
47
49
48
- function handleRemoveClick ( this : MultiActionChip , event : Event ) {
50
+ function handleRemoveClick ( this : Chip , event : Event ) {
49
51
if ( this . disabled ) {
50
52
return ;
51
53
}
You can’t perform that action at this time.
0 commit comments