Skip to content

Commit 5b11f5c

Browse files
committed
Improves the spcificity of the row highlighting
1 parent 9edd0e2 commit 5b11f5c

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ const rowHoverStyles = {
166166
};
167167

168168
const stickyStyles =
169-
"sticky right-0 bg-background-dimmed group-hover/table-row:bg-charcoal-750 [&:has(.group-hover\\/table-row\\:block)]:w-auto group-has-[[tabindex='0']:focus]:bg-background-bright";
169+
"sticky right-0 bg-background-dimmed group-hover/table-row:bg-charcoal-750 [&:has(.group-hover\\/table-row\\:block)]:w-auto group-has-[[tabindex='0']:focus]/table-row:bg-background-bright";
170170

171171
const isSelectedStyle = "bg-charcoal-750 group-hover:bg-charcoal-750";
172172

@@ -311,7 +311,7 @@ export const TableCellMenu = forwardRef<
311311
<div className="relative h-full p-1">
312312
<div
313313
className={cn(
314-
"absolute right-0 top-1/2 mr-1 flex -translate-y-1/2 items-center justify-end gap-0.5 rounded-[0.25rem] bg-background-dimmed p-0.5 group-hover/table-row:bg-background-bright group-hover/table-row:ring-1 group-hover/table-row:ring-grid-bright group-has-[[tabindex='0']:focus]:bg-background-bright"
314+
"absolute right-0 top-1/2 mr-1 flex -translate-y-1/2 items-center justify-end gap-0.5 rounded-[0.25rem] bg-background-dimmed p-0.5 group-hover/table-row:bg-background-bright group-hover/table-row:ring-1 group-hover/table-row:ring-grid-bright group-has-[[tabindex='0']:focus]/table-row:bg-background-bright"
315315
)}
316316
>
317317
{/* Hidden buttons that show on hover */}

0 commit comments

Comments
 (0)