Skip to content

Commit 3019692

Browse files
committed
docs(Modal): stories enhancements
1 parent b7230e7 commit 3019692

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

packages/core/src/components/Modal/layouts/ModalBasicLayout/__stories__/ModalBasicLayout.stories.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ export const AlertModal: Story = {
167167
<ModalBasicLayout>
168168
<ModalHeader title="Alert modal" />
169169
<ModalContent>
170-
This will allow closing the modal only by the close buttons and not by ESC or by clicking outside.
170+
<Text type="text1" align="inherit" element="p">
171+
This will allow closing the modal only by the close buttons and not by ESC or by clicking outside.
172+
</Text>
171173
</ModalContent>
172174
</ModalBasicLayout>
173175
<ModalFooter
@@ -183,7 +185,14 @@ export const Scroll: Story = {
183185
decorators: [(Story, context) => withOpenedModalPreview(Story, { isDocsView: context.viewMode === "docs" })],
184186
render: (_, { show, setShow, container }) => {
185187
return (
186-
<Modal id="modal-basic" show={show} size="medium" onClose={() => setShow(false)} container={container}>
188+
<Modal
189+
id="modal-basic"
190+
show={show}
191+
size="medium"
192+
onClose={() => setShow(false)}
193+
container={container}
194+
style={{ height: 400 }}
195+
>
187196
<ModalBasicLayout>
188197
<ModalHeader title="Scrollable modal" />
189198
<ModalContent>

0 commit comments

Comments
 (0)