Skip to content

Commit

Permalink
fixup! Add modal dialog to Storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinnl committed Jan 14, 2025
1 parent 0762ebd commit f33c7a0
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions src/app/components/client/stories/ModalDialog.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,28 @@ const ModalDialog = (props: ModalDialogProps) => {
</Dialog>
) : (
<>
<p>
This is modal content; note that it&apos;s not possible to
interact with the content behind the modal overlay. Here&apos;s
a button to close the modal: &nbsp;
</p>
<Button variant="primary" onPress={() => modalState.close()}>
Close modal
</Button>
<div
style={{
display: "flex",
flexDirection: "column",
alignItems: "flex-start",
gap: 16,
}}
>
<p>
This is modal content; note that it&apos;s not possible to
interact with the content behind the modal overlay.
Here&apos;s a button to close the modal: &nbsp;
</p>
<Button variant="primary" onPress={() => modalState.close()}>
Close modal
</Button>
<p>
Note that modal overlays aren&apos;t usually used on their
own. This is merely an example to help clarify the boundaries
between the Modal and Dialog components.
</p>
</div>
</>
)}
</ModalOverlay>
Expand Down

0 comments on commit f33c7a0

Please sign in to comment.