Skip to content

Commit

Permalink
fix: #562
Browse files Browse the repository at this point in the history
  • Loading branch information
efstajas committed Jul 13, 2023
1 parent b7ec952 commit 2cbee79
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/lib/components/annotation-box/annotation-box.svelte
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<script lang="ts">
import WarningIcon from 'radicle-design-system/icons/ExclamationCircle.svelte';
import InfoCircle from 'radicle-design-system/icons/InfoCircle.svelte';
export let type: 'warning' | 'info' = 'warning';
export let size: 'normal' | 'small' = 'normal';
</script>

<div class="annotation-box typo-text-small {type} {size}">
<div class="content">
<WarningIcon
style="height: 1.25rem; width: 1.25rem; fill: var({type === 'info'
? '--color-primary-level-6'
: '--color-caution-level-6'});"
/>
{#if type === 'warning'}
<WarningIcon style="height: 1.25rem; width: 1.25rem; fill: var(--color-caution-level-6)" />
{:else}
<InfoCircle style="height: 1.25rem; width: 1.25rem; fill: var(--color-primary-level-6)" />
{/if}
<slot />
</div>
</div>
Expand Down

0 comments on commit 2cbee79

Please sign in to comment.