Skip to content

Commit

Permalink
[docs] Move custom theme to frame (#26744)
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Jun 16, 2021
1 parent 2c4dc99 commit 25a37ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions docs/src/modules/components/AppFrame.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ const styles = (theme) => ({
},
root: {
display: 'flex',
...(theme.palette.mode === 'dark' && {
backgroundColor: theme.palette.grey[900],
}),
},
grow: {
flex: '1 1 auto',
Expand Down
4 changes: 0 additions & 4 deletions docs/src/modules/components/ThemeContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,6 @@ export function ThemeProvider(props) {
languageMap[userLanguage],
);

if (paletteMode === 'dark') {
nextTheme.palette.background.default = '#222';
}

return nextTheme;
}, [dense, direction, paletteColors, paletteMode, spacing, userLanguage]);

Expand Down

0 comments on commit 25a37ee

Please sign in to comment.