Skip to content

Commit 9931425

Browse files
committed
move text down when active
1 parent e2346e7 commit 9931425

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/components/TableHeadCell/TableHeadCell.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import styled, { css } from 'styled-components';
55
import { createBorderStyles, createDisabledTextStyles } from '../common';
66
import { padding } from '../common/system';
77

8-
// TODO move text down on Click
9-
108
const StyledHeadCell = styled.th`
119
position: relative;
1210
padding: 0 ${padding.sm};
@@ -38,6 +36,11 @@ user-select: none;
3836
border-top: none;
3937
padding-top: 2px;
4038
}
39+
40+
& > div {
41+
position: relative;
42+
top: 2px;
43+
}
4144
}
4245
`}
4346
@@ -63,7 +66,7 @@ const TableHeadCell = React.forwardRef(function TableHeadCell(props, ref) {
6366
onTouchStart={() => ''}
6467
{...otherProps}
6568
>
66-
{children}
69+
<div>{children}</div>
6770
</StyledHeadCell>
6871
);
6972
});

0 commit comments

Comments
 (0)