Skip to content

Commit 7f2b414

Browse files
authored
TableView - preventing a divider from showing on the last cell of a table row (#2183)
1 parent 4bf6676 commit 7f2b414

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/@react-spectrum/table/src/TableView.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -462,10 +462,10 @@ function TableSelectAllCell({column}) {
462462
)
463463
}>
464464
{
465-
/*
466-
In single selection mode, the checkbox will be hidden.
467-
So to avoid leaving a column header with no accessible content,
468-
we use a VisuallyHidden component to include the aria-label from the checkbox,
465+
/*
466+
In single selection mode, the checkbox will be hidden.
467+
So to avoid leaving a column header with no accessible content,
468+
we use a VisuallyHidden component to include the aria-label from the checkbox,
469469
which for single selection will be "Select."
470470
*/
471471
isSingleSelectionMode &&
@@ -618,7 +618,7 @@ function TableCell({cell}) {
618618
styles,
619619
'spectrum-Table-cell',
620620
{
621-
'spectrum-Table-cell--divider': columnProps.showDivider,
621+
'spectrum-Table-cell--divider': columnProps.showDivider && cell.column.nextKey !== null,
622622
'spectrum-Table-cell--hideHeader': columnProps.hideHeader,
623623
'is-disabled': isDisabled
624624
},

0 commit comments

Comments
 (0)