Skip to content

Commit 4347b41

Browse files
committed
feat(Table): update isPlain to apply no-plain when false
1 parent 93e7816 commit 4347b41

File tree

1 file changed

+2
-1
lines changed
  • packages/react-table/src/components/Table

1 file changed

+2
-1
lines changed

packages/react-table/src/components/Table/Table.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const TableBase: React.FunctionComponent<TableProps> = ({
9696
variant,
9797
borders = true,
9898
isStickyHeader = false,
99-
isPlain = false,
99+
isPlain,
100100
gridBreakPoint = TableGridBreakpoint.gridMd,
101101
'aria-label': ariaLabel,
102102
role = 'grid',
@@ -226,6 +226,7 @@ const TableBase: React.FunctionComponent<TableProps> = ({
226226
isStriped && styles.modifiers.striped,
227227
isExpandable && styles.modifiers.expandable,
228228
isPlain && styles.modifiers.plain,
229+
isPlain !== undefined && isPlain === false && styles.modifiers.noPlain,
229230
hasNoInset && stylesTreeView.modifiers.noInset,
230231
isNested && 'pf-m-nested',
231232
hasAnimations && styles.modifiers.animateExpand

0 commit comments

Comments
 (0)