Skip to content

Commit

Permalink
tweak the bg: true demo styles
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed Jun 30, 2023
1 parent ab0f5d4 commit 6d9bb2a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/src/modules/components/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,10 @@ const DemoRootMaterial = styled('div', {
/* Prepare the background to display an inner elevation. */
...(bg === true && {
padding: theme.spacing(3),
backgroundColor: (theme.vars || theme).palette.grey[100],
backgroundColor: (theme.vars || theme).palette.grey[50],
border: `1px solid ${(theme.vars || theme).palette.divider}`,
...theme.applyDarkStyles({
backgroundColor: (theme.vars || theme).palette.grey[900],
backgroundColor: alpha(theme.palette.primaryDark[700], 0.5),
}),
}),
/* Mostly meant for introduction demos. */
Expand Down

0 comments on commit 6d9bb2a

Please sign in to comment.