Skip to content

Commit

Permalink
feat: update toast icon color reactively (#1422)
Browse files Browse the repository at this point in the history
* init

* Remove iml change

* add let statement for type inference
  • Loading branch information
andrewrisse committed Sep 2, 2024
1 parent 5a6a801 commit 939b2ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/toast/Toast.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
};
// | 'gray'| 'red'| 'yellow'| 'green'| 'indigo'| 'purple'| 'pink'| 'blue'| 'primary'| 'none';
let iconClass: string = twMerge(
let iconClass: string;
$: iconClass = twMerge(
'inline-flex items-center justify-center shrink-0 rounded-lg',
colors[color],
defaultIconClass
Expand Down

0 comments on commit 939b2ae

Please sign in to comment.