Skip to content

Commit 06539eb

Browse files
committed
#1152 - fix colour of facet accordian headers in dark mode
1 parent 473f346 commit 06539eb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/datagateway-search/src/facet/components/facetPanel/facetPanel.component.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ const Accordion = styled(MuiAccordion)(({ theme }) => ({
3838
}));
3939

4040
const AccordionSummary = styled(MuiAccordionSummary)(({ theme }) => ({
41-
backgroundColor: theme.palette.grey[50],
41+
backgroundColor:
42+
theme.palette.mode === 'dark'
43+
? theme.palette.grey[900]
44+
: theme.palette.grey[50],
4245
minHeight: 0,
4346
paddingTop: theme.spacing(1),
4447
paddingBottom: theme.spacing(1),

0 commit comments

Comments
 (0)