Skip to content

Commit

Permalink
docs(Modal): stories enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
YossiSaadi committed Dec 11, 2024
1 parent b7230e7 commit 3019692
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ export const AlertModal: Story = {
<ModalBasicLayout>
<ModalHeader title="Alert modal" />
<ModalContent>
This will allow closing the modal only by the close buttons and not by ESC or by clicking outside.
<Text type="text1" align="inherit" element="p">
This will allow closing the modal only by the close buttons and not by ESC or by clicking outside.
</Text>
</ModalContent>
</ModalBasicLayout>
<ModalFooter
Expand All @@ -183,7 +185,14 @@ export const Scroll: Story = {
decorators: [(Story, context) => withOpenedModalPreview(Story, { isDocsView: context.viewMode === "docs" })],
render: (_, { show, setShow, container }) => {
return (
<Modal id="modal-basic" show={show} size="medium" onClose={() => setShow(false)} container={container}>
<Modal
id="modal-basic"
show={show}
size="medium"
onClose={() => setShow(false)}
container={container}
style={{ height: 400 }}
>
<ModalBasicLayout>
<ModalHeader title="Scrollable modal" />
<ModalContent>
Expand Down

0 comments on commit 3019692

Please sign in to comment.