Skip to content

Commit e8dfc9d

Browse files
(Table): apply .slds-table_resizable-cols and remove .slds-table_cell-buffer, if sortable
1 parent a939faf commit e8dfc9d

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/scripts/Table.tsx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -286,17 +286,15 @@ export const Table: FC<TableProps> = (props) => {
286286
...rprops
287287
} = props;
288288

289-
const tableClassNames = classnames(
290-
className,
291-
'slds-table slds-table_cell-buffer',
292-
{
293-
'slds-table_bordered': bordered,
294-
'slds-no-row-hover': noRowHover,
295-
'slds-table_striped': striped,
296-
'slds-table_fixed-layout': fixedLayout,
297-
'slds-table_col-bordered': verticalBorders,
298-
}
299-
);
289+
const tableClassNames = classnames(className, 'slds-table', {
290+
'slds-table_bordered': bordered,
291+
'slds-no-row-hover': noRowHover,
292+
'slds-table_striped': striped,
293+
'slds-table_fixed-layout': fixedLayout,
294+
'slds-table_resizable-cols': sortable,
295+
'slds-table_cell-buffer': !sortable,
296+
'slds-table_col-bordered': verticalBorders,
297+
});
300298

301299
const style: CSSProperties = { ...style_ };
302300
if (autoWidth) {

0 commit comments

Comments
 (0)