Skip to content

Commit cc102c6

Browse files
fix(Table): add tw group for descendant styling
1 parent b35868a commit cc102c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/data/src/table/BodyCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const BodyCell = ({
7474

7575
return (
7676
<div
77-
className="overflow-hidden bg-inherit start-0 border-e"
77+
className="overflow-hidden bg-inherit start-0 border-e group/table-col"
7878
style={{
7979
width: width ?? COL_DEFAULT_WIDTH,
8080
minWidth: column.minWidth ?? COL_MIN_WIDTH,

packages/data/src/table/BodyRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const BodyRow = ({
7474
role="none"
7575
data-row={index}
7676
className={classNames(
77-
"flex flex-nowrap datatable-row data-[hilight]:outline-1 -outline-offset-1 outline-primary-500",
77+
"flex flex-nowrap datatable-row data-[hilight]:outline-1 -outline-offset-1 outline-primary-500 group/table-row",
7878
onRowClick && "hover:bg-primary-50 active:bg-primary-100",
7979
index % 2 ? "bg-even" : "bg-odd",
8080
)}

0 commit comments

Comments
 (0)