From b136c0679c2b31f020151936efa6ed064f85ac05 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Wed, 5 Jul 2023 14:11:46 +0100 Subject: [PATCH] fix: card actions padding --- src/theme/components/MuiCardActions.tsx | 12 ++++++++++++ src/theme/components/index.ts | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 src/theme/components/MuiCardActions.tsx diff --git a/src/theme/components/MuiCardActions.tsx b/src/theme/components/MuiCardActions.tsx new file mode 100644 index 00000000..3c54311b --- /dev/null +++ b/src/theme/components/MuiCardActions.tsx @@ -0,0 +1,12 @@ +import spacing from '../spacing'; +import Components from './_components'; + +const MuiCardActions: Components['MuiCardActions'] = { + styleOverrides: { + root: { + padding: spacing(2) + } + } +}; + +export default MuiCardActions; diff --git a/src/theme/components/index.ts b/src/theme/components/index.ts index 276c4e24..7aac3c69 100644 --- a/src/theme/components/index.ts +++ b/src/theme/components/index.ts @@ -2,6 +2,7 @@ import { ThemeOptions } from '@mui/material'; import MuiAccordion from './MuiAccordion'; import MuiButton from './MuiButton'; +import MuiCardActions from './MuiCardActions'; import MuiCheckbox from './MuiCheckbox'; import MuiContainer from './MuiContainer'; import MuiDialog from './MuiDialog'; @@ -25,6 +26,7 @@ import MuiTypography from './MuiTypography'; const components: ThemeOptions['components'] = { MuiAccordion, MuiButton, + MuiCardActions, MuiCheckbox, MuiContainer, MuiDialog,