Skip to content

Commit fbb7094

Browse files
committed
Added additional class names for external styling
1 parent b5cefab commit fbb7094

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

src/components/Body.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ const Body = React.forwardRef(({ top: startTop = 0 }, ref) => {
106106

107107
return (
108108
<Tbody
109+
className="table-body"
109110
styles={ getStyles(styles, 'tbody') }
110111
ref={ ref }
111112
isPrinting={ isPrinting }

src/components/Filters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const Filters = React.forwardRef(({ children }, ref) => {
2323
const width = useSelector(getData(tableData => tableData.table ? tableData.table.width : 0));
2424

2525
return (
26-
<Thead styles={ getStyles(styles, 'filters') } ref={ ref }>
26+
<Thead className="table-filters" styles={ getStyles(styles, 'filters') } ref={ ref }>
2727
<div style={{ width }}>
2828
<Tr className="rdt-table-row" columns={ columns } styles={ getStyles(styles.tr, 'filters') }>
2929
{(config, index) => {

src/components/Header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const Header = React.forwardRef(({ children }, ref) => {
4242
const width = useSelector(getData(tableData => tableData.table ? tableData.table.width : 0));
4343

4444
return (
45-
<Thead styles={ getStyles(styles, 'thead') } ref={ ref }>
45+
<Thead className="table-header" styles={ getStyles(styles, 'thead') } ref={ ref }>
4646
<div style={{ width }}>
4747
<Tr className="rdt-table-row" columns={ columns } styles={ getStyles(styles.tr, 'header') }>
4848
{(config, index) => {

src/components/Table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const Table = ({ children }) => {
66
const { config } = useContext(ConfigContext);
77
const { styles = {} } = config.components.Table;
88
return (
9-
<StyledTable styles={ styles.table }>
9+
<StyledTable className="rdt-table" styles={ styles.table }>
1010
{ children }
1111
</StyledTable>
1212
);

0 commit comments

Comments
 (0)