Skip to content
Snippets Groups Projects
Unverified Commit 88a36a6a authored by Nicolò Pretto's avatar Nicolò Pretto Committed by GitHub
Browse files

fix: padding not working on <Modal> component (#40748)

parent 4e7d6f45
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,9 @@ export const getModalOverrides = (): MantineThemeOverride["components"] => ({ ...@@ -16,6 +16,9 @@ export const getModalOverrides = (): MantineThemeOverride["components"] => ({
backgroundColor: theme.fn.rgba(theme.fn.themeColor("bg-black"), 0.6), backgroundColor: theme.fn.rgba(theme.fn.themeColor("bg-black"), 0.6),
}, },
}), }),
defaultProps: {
p: DEFAULT_MODAL_SPACING,
},
}, },
ModalRoot: { ModalRoot: {
defaultProps: { defaultProps: {
...@@ -32,11 +35,6 @@ export const getModalOverrides = (): MantineThemeOverride["components"] => ({ ...@@ -32,11 +35,6 @@ export const getModalOverrides = (): MantineThemeOverride["components"] => ({
pb: "sm", pb: "sm",
}, },
}, },
ModalBody: {
defaultProps: {
p: DEFAULT_MODAL_SPACING,
},
},
ModalCloseButton: { ModalCloseButton: {
defaultProps: { defaultProps: {
"aria-label": t`Close`, "aria-label": t`Close`,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment