Skip to content

Commit 0b0c7df

Browse files
committed
Fix for showing correct cursor for linked table rows
1 parent df3bc01 commit 0b0c7df

File tree

1 file changed

+3
-3
lines changed
  • apps/webapp/app/components/primitives

1 file changed

+3
-3
lines changed

apps/webapp/app/components/primitives/Table.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export const TableRow = forwardRef<HTMLTableRowElement, Omit<TableRowProps, "var
112112
<tr
113113
ref={ref}
114114
className={cn(
115-
"group/table-row relative w-full cursor-pointer outline-none after:absolute after:bottom-0 after:left-3 after:right-0 after:h-px after:bg-grid-dimmed",
115+
"group/table-row relative w-full outline-none after:absolute after:bottom-0 after:left-3 after:right-0 after:h-px after:bg-grid-dimmed",
116116
isSelected && variants[variant].rowSelected,
117117
disabled && "opacity-50",
118118
className
@@ -246,15 +246,15 @@ export const TableCell = forwardRef<HTMLTableCellElement, Omit<TableCellProps, "
246246
{to ? (
247247
<Link
248248
to={to}
249-
className={cn("focus:outline-none", flexClasses, actionClassName)}
249+
className={cn("cursor-pointer focus:outline-none", flexClasses, actionClassName)}
250250
tabIndex={isTabbableCell ? 0 : -1}
251251
>
252252
{children}
253253
</Link>
254254
) : onClick ? (
255255
<button
256256
onClick={onClick}
257-
className={cn("focus:outline-none", flexClasses, actionClassName)}
257+
className={cn("cursor-pointer focus:outline-none", flexClasses, actionClassName)}
258258
tabIndex={isTabbableCell ? 0 : -1}
259259
>
260260
{children}

0 commit comments

Comments
 (0)