Skip to content

Commit

Permalink
fix(ui): allow passing class to alert and badge components
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Shatford <[email protected]>
  • Loading branch information
jordanshatford committed Sep 13, 2023
1 parent ac83502 commit 5a440aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ui/src/lib/components/Alert.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
const { divClass, iconClass, titleClass, descriptionClass } = alert({ variant });
</script>

<div {...$$restProps} role="alert" class={divClass()}>
<div {...$$restProps} role="alert" class={divClass({ class: $$props.class })}>
<div class={iconClass()}>
{#if icon}
<Icon src={icon} theme="solid" class="h-5 w-5" />
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/lib/components/Badge.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
const { spanClass, iconClass, textClass, buttonClass } = badge({ variant, loading });
</script>

<span {...$$restProps} class={spanClass()}>
<span {...$$restProps} class={spanClass({ class: $$props.class })}>
<span class="h-5">
{#if _icon}
<Icon src={_icon} theme="solid" class={iconClass()} />
Expand Down

0 comments on commit 5a440aa

Please sign in to comment.