Skip to content

Commit 17302b8

Browse files
committed
Tabbed row style applied to the sticky cells
1 parent 796e0d3 commit 17302b8

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
@@ -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 w-[--sticky-width] [&:has(.group-hover\\/table-row\\:block)]:w-auto";
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";
170170

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

@@ -212,7 +212,7 @@ export const TableCell = forwardRef<HTMLTableCellElement, TableCellProps>(
212212
ref={ref}
213213
className={cn(
214214
"text-xs text-charcoal-400",
215-
to || onClick || hasAction ? "cursor-pointer" : "px-3 py-3 align-middle",
215+
to || onClick || hasAction ? "cursor-pointer" : "cursor-default px-3 py-3 align-middle",
216216
!to && !onClick && alignmentClassName,
217217
isSticky && stickyStyles,
218218
isSelected && isSelectedStyle,
@@ -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"
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"
315315
)}
316316
>
317317
{/* Hidden buttons that show on hover */}

0 commit comments

Comments
 (0)