From 91d9d1e2aa21dadae954e8b7da73188911d33022 Mon Sep 17 00:00:00 2001 From: Alla Doroshkevych Date: Wed, 14 Feb 2024 15:06:58 -0500 Subject: [PATCH] empty action cell text added --- .../src/subcomponents/ColumnHeaderCell.jsx | 67 ++++++++++++------- packages/terra-table/translations/en-GB.json | 1 + packages/terra-table/translations/en-US.json | 1 + packages/terra-table/translations/en.json | 1 + 4 files changed, 45 insertions(+), 25 deletions(-) diff --git a/packages/terra-table/src/subcomponents/ColumnHeaderCell.jsx b/packages/terra-table/src/subcomponents/ColumnHeaderCell.jsx index 37ee1a4a002..ecfb1cd9852 100644 --- a/packages/terra-table/src/subcomponents/ColumnHeaderCell.jsx +++ b/packages/terra-table/src/subcomponents/ColumnHeaderCell.jsx @@ -337,10 +337,47 @@ const ColumnHeaderCell = (props) => { }; const isPinnedColumn = columnIndex < columnContext.pinnedColumnOffsets.length; + const CellTag = !isActionCell ? 'th' : 'td'; + + // Create cell content + let cellContent; + if (isActionCell) { + if (action) { + cellContent = ( +