Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

. #45

Merged
merged 2 commits into from
Aug 11, 2024
Merged

. #45

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>