Skip to content

Commit

Permalink
fix: add className prop to StandardTable (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
KrissDrawing authored Oct 4, 2023
1 parent 7cd98b3 commit 1fe35ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tables/StandardTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ export interface StandardTableProps {
headers: TableHeaders
/** The table data passed as records of column name to cell data with optional settings */
data?: StandardTableData
/** A class name applied to the wrapper of the table */
className?: string
/** A class name applied to the root of the table */
tableClassName?: string
/** A class name applied to each cell */
Expand Down Expand Up @@ -257,7 +259,7 @@ export const StandardTable = (props: StandardTableProps) => {
}

return (
<div style={{ overflowX: "auto" }}>
<div style={{ overflowX: "auto" }} className={props.className}>
<table id={props.id} aria-label={props.ariaLabel} className={tableClasses.join(" ")}>
<thead>
<tr>{headerLabels}</tr>
Expand Down

0 comments on commit 1fe35ac

Please sign in to comment.