Add left and right margins to modals (#2082)

* Add left and right margins to modals

* Release notes
This commit is contained in:
Joel Jeremy Marquez
2023-12-13 19:47:47 -08:00
committed by GitHub
parent ca55d9c85e
commit f90fe04b2b
2 changed files with 8 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ export type ModalProps = {
isHidden?: boolean;
children: ReactNode | (() => ReactNode);
size?: { width?: number; height?: number };
padding?: number;
padding?: CSSProperties['padding'];
showHeader?: boolean;
showTitle?: boolean;
showClose?: boolean;
@@ -93,6 +93,7 @@ const Modal = ({
backgroundColor: 'transparent',
padding: 0,
pointerEvents: 'auto',
margin: '0 10px',
...contentStyle,
},
overlay: {

View File

@@ -0,0 +1,6 @@
---
category: Enhancements
authors: [joel-jeremy]
---
Add left and right margin to modals.