Skip to content

Commit f2f21e3

Browse files
committed
fix(Chart)fix table odd and even background color
1 parent aaed49e commit f2f21e3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

frontend/src/app/components/ChartGraph/BasicTableChart/AntdTableWrapper.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,13 @@ const StyledTable = styled(Table)<{ tableStyleConfig?: TableStyleConfigProps }>`
9292
background: #fafafa;
9393
}
9494
95-
.ant-table .ant-table-container .ant-table-body .ant-table-tbody td {
96-
background: transparent;
97-
}
98-
99-
.odd {
95+
.ant-table .ant-table-container .ant-table-body .odd td{
10096
background: ${p =>
10197
p?.tableStyleConfig?.odd?.backgroundColor || 'transparent'};
10298
color: ${p => p?.tableStyleConfig?.odd?.color || 'auto'};
10399
}
104100
105-
.even {
101+
.ant-table .ant-table-container .ant-table-body .even td{
106102
background: ${p =>
107103
p?.tableStyleConfig?.even?.backgroundColor || 'transparent'};
108104
color: ${p => p?.tableStyleConfig?.even?.color || 'auto'};

0 commit comments

Comments
 (0)