Skip to content

Commit d63997a

Browse files
authored
chore(toggletip): clean up test story (#20308)
* chore(toggletip): clean up test story * chore: fix format
1 parent a52b5d3 commit d63997a

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

packages/react/src/components/Toggletip/Toggletip.stories.js

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -155,34 +155,3 @@ Default.story = {
155155
),
156156
],
157157
};
158-
159-
// I need to remove this
160-
export const OutsideClickTest = () => {
161-
const [open, setOpen] = React.useState(false);
162-
163-
return (
164-
<div style={{ padding: '2rem' }}>
165-
<Button onClick={() => setOpen(true)}>Launch modal</Button>
166-
167-
<Modal
168-
open={open}
169-
onRequestClose={() => setOpen(false)}
170-
modalHeading="Test Modal"
171-
primaryButtonText="Close">
172-
<p>
173-
Click the <strong>i</strong> icon to open the Toggletip, then click
174-
anywhere in this modal body. The Toggletip should close.
175-
</p>
176-
177-
<Toggletip align="bottom">
178-
<ToggletipButton label="Show information">
179-
<Information />
180-
</ToggletipButton>
181-
<ToggletipContent>
182-
<p>Toggletip content</p>
183-
</ToggletipContent>
184-
</Toggletip>
185-
</Modal>
186-
</div>
187-
);
188-
};

0 commit comments

Comments
 (0)