Skip to content

Commit 87a1eea

Browse files
committed
#1600| Styling fix : Border color shade changed , Unused StyledTableQGRow removed and usedStyled TableRow instead of TableRow in renderGroupQuestionView
1 parent 2a590bd commit 87a1eea

File tree

1 file changed

+3
-25
lines changed

1 file changed

+3
-25
lines changed

src/dataEntryApp/components/Observations.jsx

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const StyledTable = styled(Table)(({ theme, highlight }) => ({
4848
}));
4949

5050
const StyledTableRow = styled(TableRow)(({ theme }) => ({
51-
border: `2px solid ${theme.palette.grey[200]}`,
51+
border: `2px solid ${theme.palette.grey[300]}`,
5252
"&:nth-of-type(odd)": {
5353
backgroundColor: "rgba(0, 0, 0, 0.02)",
5454
},
@@ -63,28 +63,6 @@ const StyledTableRow = styled(TableRow)(({ theme }) => ({
6363
},
6464
}));
6565

66-
const StyledTableQGRow = styled(TableRow)(({ theme }) => ({
67-
border: `2px solid ${theme.palette.grey[200]}`,
68-
borderTop: `2px solid ${theme.palette.grey[400]}`,
69-
borderLeft: `2px solid ${theme.palette.grey[400]}`,
70-
borderRight: `1px solid ${theme.palette.grey[100]}`,
71-
borderBottom: `1px solid ${theme.palette.grey[100]}`,
72-
boxShadow: `inset 2px 2px 4px rgba(0, 0, 0, 0.1), inset -1px -1px 2px rgba(255, 255, 255, 0.8)`,
73-
"&:nth-of-type(odd)": {
74-
backgroundColor: "rgba(0, 0, 0, 0.02)",
75-
},
76-
"&:nth-of-type(even)": {
77-
backgroundColor: theme.palette.background.paper,
78-
},
79-
"&:hover": {
80-
backgroundColor: theme.palette.action.hover,
81-
boxShadow: `inset 1px 1px 3px rgba(0, 0, 0, 0.15), inset -1px -1px 2px rgba(255, 255, 255, 0.9)`,
82-
},
83-
"&:last-child td": {
84-
borderBottom: "none",
85-
},
86-
}));
87-
8866
const StyledTableCell = styled(TableCell)(({ theme, variant }) => ({
8967
padding: variant === "spacer" ? "4px 8px" : "6px 12px",
9068
borderBottom: `1px solid ${theme.palette.grey[100]}`,
@@ -564,7 +542,7 @@ const Observations = ({
564542
}
565543

566544
return (
567-
<TableRow key={`${index}-${customKey}`}>
545+
<StyledTableRow key={`${index}-${customKey}`}>
568546
<StyledTableCell variant="header" colSpan={6}>
569547
<StyledBox>
570548
<StyledTypography variant="body1" component="div">
@@ -577,7 +555,7 @@ const Observations = ({
577555
</Table>
578556
</StyledBox>
579557
</StyledTableCell>
580-
</TableRow>
558+
</StyledTableRow>
581559
);
582560
};
583561

0 commit comments

Comments
 (0)