From 4d09b88673ad02e2b9fc161959252804bb340059 Mon Sep 17 00:00:00 2001 From: Michael Coker Date: Thu, 25 Jun 2026 14:50:37 -0500 Subject: [PATCH 1/2] fix(table): updated nested sticky header example with isBorderRow tr --- .../src/components/Table/examples/Table.md | 1 + .../examples/TableNestedStickyHeader.tsx | 163 +++++++++--------- 2 files changed, 85 insertions(+), 79 deletions(-) diff --git a/packages/react-table/src/components/Table/examples/Table.md b/packages/react-table/src/components/Table/examples/Table.md index ab72bbd0c19..4b48ed61ed6 100644 --- a/packages/react-table/src/components/Table/examples/Table.md +++ b/packages/react-table/src/components/Table/examples/Table.md @@ -452,6 +452,7 @@ To make a nested column header: 2. Pass `nestedHeaderColumnSpans` to `Table`. `nestedHeaderColumnSpans` is an array of numbers representing the column spans of the top level columns to `Table`, where each number is equal to the number of sub columns for a column, or `1` if a column contains no sub columns. 3. Pass `hasNestedHeader` to `Thead`. 4. Pass two `Tr` as children of `Thead`. +5. If the parent `Table` has a sticky header, pass an additional `Tr isBorderRow` in `Thead` to create the bottom border in the `Thead`. The first `Tr` represents the top level of columns, and each must pass either `rowSpan` if the column does not contain sub columns or `colSpan` if the column contains sub columns. The value of `rowSpan` is equal to the number of rows the nested header will span, typically `2`, and the value of `colSpan` is equal to the number of sub columns in a column. Each `Th` except the last should also pass `hasRightBorder`. diff --git a/packages/react-table/src/components/Table/examples/TableNestedStickyHeader.tsx b/packages/react-table/src/components/Table/examples/TableNestedStickyHeader.tsx index c40a84b5b9b..925855cb71f 100644 --- a/packages/react-table/src/components/Table/examples/TableNestedStickyHeader.tsx +++ b/packages/react-table/src/components/Table/examples/TableNestedStickyHeader.tsx @@ -112,85 +112,90 @@ export const TableNestedHeaders: React.FunctionComponent = () => { }); return ( - - - - - - - - - - - - - - - - - - - - - {sortedConnections.map((connection) => ( - - - \ - - - - - - - +
+ +
- {columnNames.pods} - - {columnNames.ports} - - {columnNames.protocol} - - {columnNames.flowRate} - - {columnNames.traffic} - - {columnNames.packets} -
- {columnNames.source} - - {columnNames.destination} - - {columnNames.datetime} - - {columnNames.source} - - {columnNames.destination} -
{connection.source.podName}{connection.destination.podName} -
- -
-
- - - {connection.source.port.num} - - - ({connection.source.port.protocol}) - - - - - - {connection.destination.port.num} - - - ({connection.destination.port.protocol}) - - - {connection.protocol}{connection.flowRate}{connection.traffic}{connection.packets}
+ + + + + + + + - ))} - -
+ {columnNames.pods} + + {columnNames.ports} + + {columnNames.protocol} + + {columnNames.flowRate} + + {columnNames.traffic} + + {columnNames.packets} +
-
+ + + {columnNames.source} + + + {columnNames.destination} + + + {columnNames.datetime} + + + {columnNames.source} + + + {columnNames.destination} + + + + + + + + {sortedConnections.map((connection) => ( + + {connection.source.podName} + {connection.destination.podName}\ + +
+ +
+ + + + + {connection.source.port.num} + + + ({connection.source.port.protocol}) + + + + + + + {connection.destination.port.num} + + + ({connection.destination.port.protocol}) + + + + {connection.protocol} + {connection.flowRate} + {connection.traffic} + {connection.packets} + + ))} + + + + ); }; From ef54927e2e0db487e25fccb2fd99fa5aa76d5570 Mon Sep 17 00:00:00 2001 From: Michael Coker Date: Thu, 25 Jun 2026 15:12:33 -0500 Subject: [PATCH 2/2] chore: removed random slash --- .../src/components/Table/examples/TableNestedStickyHeader.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-table/src/components/Table/examples/TableNestedStickyHeader.tsx b/packages/react-table/src/components/Table/examples/TableNestedStickyHeader.tsx index 925855cb71f..6c62e16ef0c 100644 --- a/packages/react-table/src/components/Table/examples/TableNestedStickyHeader.tsx +++ b/packages/react-table/src/components/Table/examples/TableNestedStickyHeader.tsx @@ -161,7 +161,7 @@ export const TableNestedHeaders: React.FunctionComponent = () => { {sortedConnections.map((connection) => ( {connection.source.podName} - {connection.destination.podName}\ + {connection.destination.podName}