Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 7febdf1

Browse files
committed
Update table header styling in UI
The styling for table headers has been updated in the table.tsx file. The previous styling for background and text color has been extended to include inheritance for child elements. This change provides refinement and flexibility for nested table elements and their appearance.
1 parent 5d3c173 commit 7febdf1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/ui/src/react/table.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ export const TableHeader = forwardRef<
3737
React.HTMLAttributes<HTMLTableSectionElement>
3838
>(({ className, ...props }, forwardedRef) => (
3939
<thead
40-
className={twMerge('bg-muted text-muted-foreground', className)}
40+
className={twMerge(
41+
'bg-muted text-muted-foreground *:bg-inherit',
42+
className,
43+
)}
4144
ref={forwardedRef}
4245
{...props}
4346
/>

0 commit comments

Comments
 (0)