Skip to content

Commit

Permalink
Remove story
Browse files Browse the repository at this point in the history
  • Loading branch information
poulch committed Oct 20, 2023
1 parent e56cc9f commit 4653288
Showing 1 changed file with 1 addition and 48 deletions.
49 changes: 1 addition & 48 deletions src/components/Modal/Modal.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Meta, StoryObj } from "@storybook/react";

import { useState } from "react";
import { Box, Button, CloseIcon, Combobox, Text } from "..";
import { Box, Button, CloseIcon, Text } from "..";

import { Modal } from ".";

Expand Down Expand Up @@ -83,50 +83,3 @@ export const Controlled = () => {
</>
);
};

export const WithComboboxInside: Story = {
args: {
children: [
// eslint-disable-next-line react/jsx-key
<Modal.Trigger>
<Button variant="tertiary">Show modal</Button>
</Modal.Trigger>,
// eslint-disable-next-line react/jsx-key
<Modal.Content>
<Box
backgroundColor="surfaceNeutralPlain"
boxShadow="modal"
__left="50%"
__top="50%"
position="fixed"
__maxWidth="400px"
__transform="translate(-50%, -50%)"
>
<Box
display="flex"
gap={3}
justifyContent="center"
alignItems="center"
>
<Combobox
label="Pick a color"
size="large"
value="color-black"
options={[
{ value: "color-black", label: "Black" },
{ value: "color-red", label: "Red" },
{ value: "color-green", label: "Green" },
{ value: "color-blue", label: "Blue" },
{ value: "color-orange", label: "Orange" },
{ value: "color-purple", label: "Purple" },
]}
/>
<Modal.Close>
<Button variant="tertiary" icon={<CloseIcon />} size="small" />
</Modal.Close>
</Box>
</Box>
</Modal.Content>,
],
},
};

0 comments on commit 4653288

Please sign in to comment.