We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0efa877 commit 76f67d7Copy full SHA for 76f67d7
1 file changed
src/components/ui/table.tsx
@@ -67,7 +67,7 @@ export function TableHead(props: TableHeadProps) {
67
<th
68
data-slot='table-head'
69
className={cn(
70
- 'h-12 px-3 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0',
+ 'h-12 px-3 text-left align-middle font-medium whitespace-nowrap text-foreground has-[[role=checkbox]]:pr-0',
71
className,
72
)}
73
{...rest}
@@ -83,7 +83,7 @@ export function TableCell(props: TableCellProps) {
83
return (
84
<td
85
data-slot='table-cell'
86
- className={cn('p-3 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0', className)}
+ className={cn('p-3 align-middle whitespace-nowrap has-[[role=checkbox]]:pr-0', className)}
87
88
/>
89
)
0 commit comments