File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,15 @@ export class FilterChip extends MultiActionChip {
25
25
@property ( { type : Boolean } ) removable = false ;
26
26
@property ( { type : Boolean , reflect : true } ) selected = false ;
27
27
28
+ /**
29
+ * Only needed for SSR.
30
+ *
31
+ * Add this attribute when a filter chip has a `slot="selected-icon"` to avoid
32
+ * a Flash Of Unstyled Content.
33
+ */
34
+ @property ( { type : Boolean , reflect : true , attribute : 'has-selected-icon' } )
35
+ hasSelectedIcon = false ;
36
+
28
37
protected get primaryId ( ) {
29
38
return 'button' ;
30
39
}
@@ -65,10 +74,12 @@ export class FilterChip extends MultiActionChip {
65
74
}
66
75
67
76
return html `
68
- < svg class ="checkmark " viewBox ="0 0 18 18 " aria-hidden ="true ">
69
- < path
70
- d ="M6.75012 12.1274L3.62262 8.99988L2.55762 10.0574L6.75012 14.2499L15.7501 5.24988L14.6926 4.19238L6.75012 12.1274Z " />
71
- </ svg >
77
+ < slot name ="selected-icon ">
78
+ < svg class ="checkmark " viewBox ="0 0 18 18 " aria-hidden ="true ">
79
+ < path
80
+ d ="M6.75012 12.1274L3.62262 8.99988L2.55762 10.0574L6.75012 14.2499L15.7501 5.24988L14.6926 4.19238L6.75012 12.1274Z " />
81
+ </ svg >
82
+ </ slot >
72
83
` ;
73
84
}
74
85
You can’t perform that action at this time.
0 commit comments