Skip to content

Commit

Permalink
1569 Adds classNames to table data rows
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardovdheijden committed Dec 13, 2024
1 parent ccc93b9 commit 03091e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const WfoTableDataRows = <T extends object>({
{data.map((row, index) => (
<Fragment key={`table-data-row-${index}`}>
<tr
className={className}
className={`${className} data-row`}
css={[
rowStyle,
dataRowStyle,
Expand All @@ -63,6 +63,7 @@ export const WfoTableDataRows = <T extends object>({
) {
return (
<td
className="control-cell"
colSpan={
columnConfig.numberOfColumnsToSpan ??
1
Expand All @@ -88,6 +89,7 @@ export const WfoTableDataRows = <T extends object>({
const result = row[key as keyof T];
return (
<td
className="data-cell"
key={key}
css={[
...toOptionalArrayEntry(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export * from './WfoMultilineCell';

export * from './WfoTable';
export * from './WfoTableHeaderCell';
export * from './WfoTableDataRows';

export * from './WfoTruncateCell';
export * from './WfoDataCell';
Expand Down

0 comments on commit 03091e6

Please sign in to comment.