Skip to content

Commit 3cd633e

Browse files
committed
Add table header background color
1 parent b82bdc1 commit 3cd633e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/app/globals.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343

4444
/* TODO: Review these custom variables */
4545
--color-nav-menu-selected-foreground: #24a148;
46+
--color-table-head: #343a3f;
47+
--color-table-head-foreground: #ffffff;
4648
}
4749

4850
:root {

src/components/ui/table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function TableHead({ className, ...props }: React.ComponentProps<"th">) {
6969
<th
7070
data-slot="table-head"
7171
className={cn(
72-
"text-foreground h-12 px-4 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
72+
"bg-table-head text-table-head-foreground h-12 px-4 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
7373
className
7474
)}
7575
{...props}

0 commit comments

Comments
 (0)