From e32c1e7989890dbb1f66fa5dfb7375904db4a870 Mon Sep 17 00:00:00 2001 From: Antonette Caldwell <134739862+nebula-aac@users.noreply.github.com> Date: Tue, 30 Apr 2024 22:24:28 +0000 Subject: [PATCH] feat: remove color from background and let it be blank through default Signed-off-by: Antonette Caldwell <134739862+nebula-aac@users.noreply.github.com> --- src/theme/components/drawer.modifier.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/theme/components/drawer.modifier.ts b/src/theme/components/drawer.modifier.ts index efc130d7..a4e65fce 100644 --- a/src/theme/components/drawer.modifier.ts +++ b/src/theme/components/drawer.modifier.ts @@ -1,13 +1,16 @@ import { Components, Theme } from '@mui/material'; -import { DARK_BLUE_GRAY } from '../colors'; export const MuiDrawer: Components['MuiDrawer'] = { styleOverrides: { - root: { - '& .MuiDrawer-paper': { - boxSize: 'border-box', - background: DARK_BLUE_GRAY - } + root: ({ theme }) => { + const { + palette: { + background: { default: defaultBackground } + } + } = theme; + return { + background: defaultBackground + }; } } };