Skip to content

Commit

Permalink
Tooltip converted to tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed Jan 10, 2025
1 parent 041e3b5 commit 287d4e5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import { PropsWithChildren } from 'react'

import { Text } from '~/components/Text'

import * as styles from './styles.css'

export { TooltipPrimitive }

interface TooltipProps {
align?: 'center' | 'end' | 'start'
delayDuration?: number
Expand Down Expand Up @@ -36,7 +32,7 @@ export const Tooltip = (props: PropsWithChildren<TooltipProps>) => {
<TooltipPrimitive.Root delayDuration={delayDuration}>
<TooltipPrimitive.Trigger asChild>{children}</TooltipPrimitive.Trigger>
<TooltipPrimitive.Content
className={styles.content}
className="backdrop-blur bg-background-raised rounded-lg px-4 pb-3 pt-2 shadow-[0_0_10px_0_rgba(0,0,0,0.5)] fill-background-raised"
side={side}
align={align}
sideOffset={vOffset}
Expand All @@ -51,3 +47,5 @@ export const Tooltip = (props: PropsWithChildren<TooltipProps>) => {
</TooltipPrimitive.Provider>
)
}

export { TooltipPrimitive }

0 comments on commit 287d4e5

Please sign in to comment.