Skip to content

Commit 49ebc1e

Browse files
committed
Add back removed story
1 parent 0aae432 commit 49ebc1e

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

e2e/components/Popover.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ const stories = [
1515
title: 'SX Props',
1616
id: 'components-popover-dev--sx-props',
1717
},
18+
{
19+
title: 'Popover Overflow',
20+
id: 'components-popover-dev--popover-overflow',
21+
},
1822
] as const
1923

2024
test.describe('Popover', () => {

packages/react/src/Popover/Popover.dev.stories.tsx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,33 @@ export default {
99
component: Popover,
1010
} as Meta<typeof Popover>
1111

12+
export const SxProps = () => (
13+
<Popover
14+
relative
15+
open={true}
16+
caret="top-right"
17+
sx={{
18+
left: '50%',
19+
transform: 'translateX(-50%)',
20+
mt: 2,
21+
color: 'var(--bgColor-danger-muted)',
22+
}}
23+
style={{padding: '16px'}}
24+
>
25+
<Popover.Content
26+
sx={{
27+
minWidth: '260px',
28+
width: '40%',
29+
}}
30+
style={{padding: '32px'}}
31+
>
32+
<Heading sx={{fontSize: 2}}>Popover heading</Heading>
33+
<Text as="p">Message about popovers</Text>
34+
<Button>Got it!</Button>
35+
</Popover.Content>
36+
</Popover>
37+
)
38+
1239
export const PopoverOverflow = () => (
1340
<Popover relative open={true}>
1441
<Popover.Content height={'small'}>

0 commit comments

Comments
 (0)