Skip to content

Commit

Permalink
fix(modal): body background
Browse files Browse the repository at this point in the history
Signed-off-by: Sudhanshu Dasgupta <[email protected]>
  • Loading branch information
sudhanshutech committed May 15, 2024
1 parent c67d2d0 commit 65ea0f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/custom/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const useModal = ({ headerIcon }: { headerIcon: React.ReactNode }): UseMo

export const ModalBody = styled(Paper)(({ theme }) => ({
padding: '1rem',
backgroundColor: theme.palette.background.constant?.white
backgroundColor: theme.palette.background.surfaces
}));

const StyledFooter = styled('div', {
Expand Down
9 changes: 7 additions & 2 deletions src/theme/palette.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ declare module '@mui/material/styles' {
warning?: Interactiveness;
error?: Interactiveness;
code?: string;
surfaces?: string;
}

// Defines the extended text color options used in the palette.
Expand Down Expand Up @@ -95,6 +96,7 @@ declare module '@mui/material/styles' {
strong?: string;
normal?: string;
disabled?: string;
surfaces?: string;
}

// Defines the simple palette color options.
Expand Down Expand Up @@ -126,6 +128,7 @@ declare module '@mui/material/styles' {
strong?: string;
normal?: string;
disabled?: string;
surfaces?: string;
}

/* Defines the palette containing border and icon color options.
Expand Down Expand Up @@ -250,7 +253,8 @@ export const lightModePalette: PaletteOptions = {
constant: {
white: Colors.accentGrey[100],
disabled: Colors.charcoal[70]
}
},
surfaces: Colors.accentGrey[100]
},
text: {
default: Colors.charcoal[10],
Expand Down Expand Up @@ -362,7 +366,8 @@ export const darkModePalette: PaletteOptions = {
constant: {
white: Colors.accentGrey[100],
disabled: Colors.charcoal[70]
}
},
surfaces: Colors.accentGrey[10]
},
text: {
default: Colors.charcoal[100],
Expand Down

0 comments on commit 65ea0f7

Please sign in to comment.