Skip to content

Commit 9479b24

Browse files
committed
core:add hover when row has action
1 parent 60b49c5 commit 9479b24

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/ui/table.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,7 @@ const TableRow = <T extends object>({
215215
{...props}
216216
className={twMerge(
217217
"tr group relative cursor-default border-b bg-bg selected:bg-(--table-selected-bg) text-muted-fg outline-hidden ring-primary selected:hover:bg-(--table-selected-bg)/70 focus:ring-0 focus-visible:ring-1 dark:selected:hover:bg-[color-mix(in_oklab,var(--color-primary)_30%,black_70%)]",
218-
"href" in props &&
219-
!props.isDisabled &&
218+
((props.href && !props.isDisabled) || props.onAction) &&
220219
"cursor-pointer hover:bg-secondary/50 hover:text-secondary-fg",
221220
className,
222221
)}

0 commit comments

Comments
 (0)