Skip to content

Commit

Permalink
. (#45)
Browse files Browse the repository at this point in the history
* .

* .

---------

Co-authored-by: Davis SHYAKA <87414827+davis-shyaka@users.noreply.github.com>
  • Loading branch information
shyakadavis and shyakadavis authored Aug 11, 2024
1 parent 69f6d60 commit f609579
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/ui/tooltip/tooltip-content.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
{transitionConfig}
{sideOffset}
class={cn(
'z-50 max-w-xs text-balance rounded-md border bg-gray-1000 px-3 py-2 text-center text-sm text-background-200 shadow-md',
'z-50 max-w-xs text-balance rounded-md bg-gray-1000 px-3 py-2 text-center text-sm text-background-200 shadow-md',
className
)}
{...$$restProps}
>
{#if tip}
<div aria-hidden="true" class="bg-gray-1000">
<TooltipPrimitive.Arrow class="rounded-sm" />
<TooltipPrimitive.Arrow class="rounded-[2.5px]" size={9} />
</div>
{/if}
<slot></slot>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/tooltip/components.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
<Tooltip.Trigger>
<Badge variant="gray" size="sm">LEFT</Badge>
</Tooltip.Trigger>
<Tooltip.Content side="bottom">The Evil Rabbit Jumped over the Fence.</Tooltip.Content>
<Tooltip.Content side="left">The Evil Rabbit Jumped over the Fence.</Tooltip.Content>
</Tooltip.Root>

<Tooltip.Root>
<Tooltip.Trigger>
<Icons.LoaderCircle class="size-4 animate-spin" />
</Tooltip.Trigger>
<Tooltip.Content side="bottom">The Evil Rabbit Jumped over the Fence.</Tooltip.Content>
<Tooltip.Content side="right">The Evil Rabbit Jumped over the Fence.</Tooltip.Content>
</Tooltip.Root>
</div>

0 comments on commit f609579

Please sign in to comment.