Skip to content

Commit 059bf42

Browse files
committed
feat: enhance CopyButton tooltip styling and improve TableBody dark mode support
1 parent 7d03e2e commit 059bf42

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/CopyButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const CopyButton = ({
6464
</button>
6565
</span>
6666
</TooltipTrigger>
67-
<TooltipContent side="top" className="max-w-sm">
67+
<TooltipContent side="top" className="max-w-sm text-inherit">
6868
{tooltipMessage}
6969
</TooltipContent>
7070
</Tooltip>

src/components/ui/table.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ function TableBody({
3838
<tbody
3939
data-slot="table-body"
4040
className={cn(
41-
'[&_tr]:border-muted *:bg-background [&_tr]:hover:*:bg-muted [&_tr:last-child]:border-0',
42-
zebra && '[&_tr]:odd:*:bg-tooltip [&_tr]:odd:hover:*:bg-muted',
41+
'[&_tr]:border-muted *:bg-background [&_tr]:hover:*:bg-tooltip dark:[&_tr]:hover:*:bg-muted [&_tr:last-child]:border-0',
42+
zebra &&
43+
'dark:[&_tr]:odd:*:bg-tooltip [&_tr]:hover:*:bg-tooltip dark:[&_tr]:odd:hover:*:bg-muted [&_tr]:odd:*:bg-[#fafaff]',
4344
className
4445
)}
4546
{...props}

0 commit comments

Comments
 (0)