Skip to content

Commit 27ed118

Browse files
saraparsa13Sara.Parsaee
and
Sara.Parsaee
authored
fix: add reflect to apply css of vairants (#185)
* fix: add reflect to apply css of vairants * fix: remove type in property --------- Co-authored-by: Sara.Parsaee <Sara.Parsaee@Tapsi.cab>
1 parent 4977dbe commit 27ed118

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/toast/toast.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ export class Toast extends LitElement {
138138

139139
@property({ type: Boolean, attribute: 'show-dismiss-button' })
140140
showDismissButton? = false;
141-
142-
@property() variant?: 'success' | 'error' | 'info' | 'warning' | 'inverse' =
143-
'inverse';
141+
142+
@property({ reflect: true })
143+
variant?: 'success' | 'error' | 'info' | 'warning' | 'inverse' = 'inverse';
144144

145145
private dispatchDismissEvent() {
146146
this.dispatchEvent(

0 commit comments

Comments
 (0)