Skip to content

Commit fac3b59

Browse files
authored
Merge pull request #918 from Vidit-Kushwaha/fix/panel
refactor: using theme in background in Panel component
2 parents 59e5d27 + cbcaf7a commit fac3b59

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/custom/Panel/style.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ListItemProps } from '@mui/material';
22
import { Box, IconButton, ListItem } from '../../base';
33
import { PanelDragHandleIcon } from '../../icons/PanelDragHandle';
4-
import { accentGrey, black, styled } from '../../theme';
4+
import { black, styled } from '../../theme';
55
import { PanelProps } from './Panel';
66

77
export const ListHeader = styled(ListItem)(({ theme }) => ({
@@ -68,7 +68,7 @@ export const DrawerHeader = styled('div')(({ theme }) => ({
6868

6969
export const PanelBody = styled(Box)(({ theme }) => ({
7070
padding: theme.spacing(2),
71-
backgroundColor: theme.palette.mode === 'light' ? accentGrey[10] : accentGrey[100],
71+
backgroundColor: theme.palette.background.surfaces,
7272
overflow: 'auto',
7373
flex: 1,
7474
minHeight: 0

0 commit comments

Comments
 (0)