Skip to content

Commit

Permalink
fix(atoms): fix table border
Browse files Browse the repository at this point in the history
  • Loading branch information
ej9x committed Nov 19, 2018
1 parent 26b304b commit 5f00a45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/atoms/Table/TableBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ class TableBody extends PureComponent<TableBodyProps<*>> {
const hasBodyRows = data && data.length > 0;

return (
<TableBodyWrapperTag>
<TableBodyWrapperTag { ...rest }>
<AsyncContent loading={ loading } stretch>
{
hasBodyRows
? (
<TableBodyTag { ...rest } tagName={ Grid.Layout }>
<TableBodyTag tagName={ Grid.Layout }>
{ React.Children.toArray(data && children && data.map(children)) }
</TableBodyTag>
)
Expand Down
4 changes: 4 additions & 0 deletions src/atoms/Table/TableBodyRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ const TableBodyRowTag = createStyledTag(name, (props: *) => ({
display: 'grid',
borderBottom: `1px solid ${props.theme.COLORS.LIGHT_GRAY1}`,
height: '6rem',

'&:last-child': {
borderBottom: 'none',
},
}));

function TableBodyRow({
Expand Down

0 comments on commit 5f00a45

Please sign in to comment.