Skip to content

Commit 2c13a66

Browse files
committed
Fix dialog background in B&W dark theme
1 parent b025e2c commit 2c13a66

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/ra-ui-materialui/src/theme/bwTheme.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,15 @@ const createBWTheme = (mode: 'light' | 'dark'): RaThemeOptions => {
327327
variant: 'outlined' as const,
328328
},
329329
},
330+
MuiDialog: {
331+
styleOverrides: {
332+
backdrop: {
333+
backgroundColor: isDarkMode
334+
? 'rgb(0,0,0,0.8)'
335+
: 'rgb(0,0,0,0.5)',
336+
},
337+
},
338+
},
330339
RaSimpleFormIterator: {
331340
defaultProps: {
332341
fullWidth: true,

0 commit comments

Comments
 (0)