Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit b28eb73

Browse files
committed
Make sort icon for table column headers remain on the same line as the text
Change-type: patch Signed-off-by: Matthew Yarmolinsky <[email protected]>
1 parent 66c636e commit b28eb73

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/components/Table/TableBase.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,6 @@ const Base = styled.div<InternalTableBaseProps>`
130130
}
131131
`;
132132

133-
const HeaderButton = styled(Button)`
134-
display: block;
135-
`;
136-
137133
type CheckedTypes = 'none' | 'some' | 'all';
138134

139135
interface TableBaseState<T> {
@@ -580,7 +576,7 @@ export class TableBase<T> extends React.Component<
580576
data-display="table-cell"
581577
key={item.key || (item.field as string)}
582578
>
583-
<HeaderButton
579+
<Button
584580
data-field={item.field}
585581
plain
586582
primary={sort.field === item.field}
@@ -596,7 +592,7 @@ export class TableBase<T> extends React.Component<
596592
: ''
597593
}
598594
/>
599-
</HeaderButton>
595+
</Button>
600596
</div>
601597
);
602598
}

0 commit comments

Comments
 (0)