We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 110df9c commit 2337855Copy full SHA for 2337855
src/components/table/components/TableCell.tsx
@@ -24,8 +24,7 @@ const TableCell: React.FC<TableCellProps> = ({
24
useDevWarning(CellOutsideOfSectionWarning, () => section === TableSection.NONE);
25
26
const cellClass = section === TableSection.HEAD ? 'nhsuk-table__header' : 'nhsuk-table__cell';
27
- const numericHeader = isNumeric ? `${cellClass}--numeric` : '';
28
- const classes = classNames(cellClass, numericHeader, className)
+ const classes = classNames(cellClass, { [`${cellClass}--numeric`]: isNumeric }, className);
29
30
switch (section) {
31
case TableSection.HEAD:
0 commit comments