Skip to content

Commit

Permalink
Fix dialog overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-zeglen committed Oct 14, 2021
1 parent 0cabb9c commit aea1ac7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/theme/createSaleorTheme/createSaleorTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const ICONBUTTON_SIZE = 48;
const fontFamily = '"Inter", "roboto", "sans-serif"';

export const createTheme = (colors: SaleorThemeColors): SaleorTheme =>
(createMuiTheme({
createMuiTheme({
overrides: {
...overrides(colors, fontFamily),
MuiCard: {
Expand Down Expand Up @@ -58,6 +58,11 @@ export const createTheme = (colors: SaleorThemeColors): SaleorTheme =>
fontSize: "1.3rem",
},
},
MuiDialog: {
paper: {
overflowY: undefined,
},
},
MuiDialogActions: {
root: {
borderTop: `1px solid ${colors.divider}`,
Expand All @@ -66,6 +71,8 @@ export const createTheme = (colors: SaleorThemeColors): SaleorTheme =>
},
MuiDialogContent: {
root: {
overflowX: undefined,
overflowY: undefined,
padding: `24px 0px`,
margin: `0px 24px`,
},
Expand Down Expand Up @@ -264,4 +271,4 @@ export const createTheme = (colors: SaleorThemeColors): SaleorTheme =>
fontSize: "1.4rem",
},
},
}) as unknown) as SaleorTheme;
}) as unknown as SaleorTheme;

0 comments on commit aea1ac7

Please sign in to comment.