Skip to content

Commit

Permalink
Update spacing and font weight (#2222)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurakwhit authored Jul 22, 2024
1 parent a205f52 commit a251302
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/lib/holocene/alert.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,14 @@
</script>

<div
class={merge('alert flex', intent, className)}
class={merge('alert', intent, className)}
class:hidden
{role}
{...$$restProps}
>
{#if icon}
<div class="pt-1">
<Icon name={icon} />
</div>
{/if}
<div class="ml-1 grow">
<p class="font-semibold leading-6" class:hidden={!title}>
<Icon name={icon} class="mt-0.5 shrink-0" />
<div class="min-w-0 gap-1">
<p class="font-medium">
{title}
</p>
{#if $$slots.default}
Expand All @@ -68,7 +64,7 @@

<style lang="postcss">
.alert {
@apply rounded-lg border-2 p-5 font-primary text-sm text-primary;
@apply flex items-start gap-2 break-words rounded-lg border-2 p-5 font-primary text-sm text-primary;
}
.alert.success {
Expand Down

0 comments on commit a251302

Please sign in to comment.