I am trying to eliminate the space between the thead and tbody.
I am using styled-components on top of Antd UI framework.
From what I can tell it's not a border, margin, or padding. I can't even select the Whiteline between them.
import { Table } from 'antd';
const StyledTable = styled(Table)`
thead th {
background-color: ${props => props.theme.colors.black1};
color: ${props => props.theme.colors.white};
}
thead tr th:hover {
background-color: ${props => props.theme.colors.secondary} !important;
color: ${props => props.theme.colors.white};
}
tbody.ant-table-tbody tr:hover td {
background-color: ${props => props.theme.colors.primaryHover};
color: ${props => props.theme.colors.white};
}
tbody {
tr {
td {
border: none;
background-color: ${props => props.theme.colors.black2};
color: rgba(255,255,255, 0.85);
&:hover, &:focus {
color: ${props => props.theme.colors.white};
}
}
}
tr:nth-child(even) td{
background-color: ${props => props.theme.colors.black3};
}
}
.ant-table-cell{
div span svg {
color: ${props => props.theme.colors.primary};
fill: ${props => props.theme.colors.primary};
}
a, a:visited, a:hover{
color: ${props => props.theme.colors.white};
}
}`;
