diff --git a/src/lib/components/Table/_components/TableCell.scss b/src/lib/components/Table/_components/TableCell.scss index 1d508007..5875d97a 100644 --- a/src/lib/components/Table/_components/TableCell.scss +++ b/src/lib/components/Table/_components/TableCell.scss @@ -14,12 +14,13 @@ border-bottom-width: 2px; } +.tableHeadCellLayout { + display: flex; + gap: settings.$cell-padding-x; + align-items: center; +} + .isTableCellSortingActive, .isTableHeadCellSortingActive { background-color: settings.$sorted-background-color; } - -.sortButton { - display: inline-block; - margin-right: settings.$cell-padding-x; -} diff --git a/src/lib/components/Table/_components/TableHeaderCell/TableHeaderCell.jsx b/src/lib/components/Table/_components/TableHeaderCell/TableHeaderCell.jsx index 7f99c86d..92c5e36f 100644 --- a/src/lib/components/Table/_components/TableHeaderCell/TableHeaderCell.jsx +++ b/src/lib/components/Table/_components/TableHeaderCell/TableHeaderCell.jsx @@ -16,23 +16,26 @@ export const TableHeaderCell = ({ className={isSortingActive ? styles.isTableHeadCellSortingActive : styles.tableHeadCell} id={id} > - {sort && column.isSortable && ( -
+ + {sort && column.isSortable && (
- )} - {column.label} + )} + {column.label} + ); };