diff --git a/src/Modal/ModalDialog.jsx b/src/Modal/ModalDialog.jsx
index 6814b3c22e..caa519c1c6 100644
--- a/src/Modal/ModalDialog.jsx
+++ b/src/Modal/ModalDialog.jsx
@@ -122,8 +122,13 @@ ModalDialog.propTypes = {
* Specifies the z-index of the modal
*/
zIndex: PropTypes.number,
- /** Specifies whether overflow is visible in the modal */
- isOverflowVisible: PropTypes.bool,
+ /**
+ * Specifies whether overflow content inside the modal should be visible.
+ * - `true` - content that exceeds the modal boundaries will remain visible outside the modal's main viewport,
+ * rather than being clipped or hidden.
+ * - `false` - any overflow content will be clipped to fit within the modal's dimensions.
+ */
+ isOverflowVisible: PropTypes.bool.isRequired,
};
ModalDialog.defaultProps = {
@@ -137,7 +142,6 @@ ModalDialog.defaultProps = {
isFullscreenOnMobile: false,
isBlocking: false,
zIndex: undefined,
- isOverflowVisible: true,
};
ModalDialog.Header = ModalDialogHeader;
diff --git a/src/Modal/modal-dialog.mdx b/src/Modal/modal-dialog.mdx
index 7e2ad4b153..bfc0f84b0b 100644
--- a/src/Modal/modal-dialog.mdx
+++ b/src/Modal/modal-dialog.mdx
@@ -31,10 +31,13 @@ label for the dialog element.
const variants = ['default', 'warning', 'danger', 'success', 'dark'];
const [modalSize, setModalSize] = useState('md');
const [modalVariant, setModalVariant] = useState('default');
+
return (
<>
-
+
@@ -73,7 +77,11 @@ label for the dialog element.
- I'm baby palo santo ugh celiac fashion axe. La croix lo-fi venmo whatever. Beard man braid migas single-origin coffee forage ramps. Tumeric messenger bag bicycle rights wayfarers, try-hard cronut blue bottle health goth. Sriracha tumblr cardigan, cloud bread succulents tumeric copper mug marfa semiotics woke next level organic roof party +1 try-hard.
+ I'm baby palo santo ugh celiac fashion axe. La croix lo-fi venmo whatever.
+ Beard man braid migas single-origin coffee forage ramps. Tumeric messenger
+ bag bicycle rights wayfarers, try-hard cronut blue bottle health goth.
+ Sriracha tumblr cardigan, cloud bread succulents tumeric copper mug marfa
+ semiotics woke next level organic roof party +1 try-hard.
@@ -82,7 +90,7 @@ label for the dialog element.
Cancel
-