From 6caa404766487b9c2342ce18f2b1a7b04053bdb8 Mon Sep 17 00:00:00 2001 From: Vili Ketonen <25618592+viliket@users.noreply.github.com> Date: Tue, 10 Sep 2024 16:15:42 +0300 Subject: [PATCH] Add temporary fix for wrong background color on MuiPaper This fix can be reverted after https://github.com/mui/material-ui/issues/43683 is resolved. --- src/theme.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/theme.ts b/src/theme.ts index 5974524a..4a54b597 100644 --- a/src/theme.ts +++ b/src/theme.ts @@ -116,6 +116,12 @@ const baseTheme: CssVarsThemeOptions = { }, }, }, + MuiPaper: { + variants: [ + // Temporary workaround for https://github.com/mui/material-ui/issues/43683 + { props: { elevation: 0 }, style: { '--Paper-overlay': 'none' } }, + ], + }, MuiDialog: { styleOverrides: { root: {