File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
packages/@react-spectrum/overlays/stories Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import {ButtonGroup} from '@react-spectrum/buttongroup';
15
15
import { Content } from '@react-spectrum/view' ;
16
16
import { Dialog , DialogTrigger } from '@react-spectrum/dialog' ;
17
17
import { Divider } from '@react-spectrum/divider' ;
18
+ import { Flex } from '@react-spectrum/layout' ;
18
19
import { Heading , Text } from '@react-spectrum/text' ;
19
20
import { Modal } from '../' ;
20
21
import React , { Fragment , useState } from 'react' ;
@@ -66,8 +67,12 @@ function UnmountingTrigger() {
66
67
< Dialog >
67
68
< Heading > Title</ Heading >
68
69
< Divider />
69
- < Content > < Text > I am a dialog</ Text > </ Content >
70
- < ButtonGroup > < ActionButton onPress = { openModal } > Open modal</ ActionButton > </ ButtonGroup >
70
+ < Content >
71
+ < Flex direction = "column" gap = "size-100" >
72
+ < Text > I am a dialog</ Text >
73
+ < ActionButton onPress = { openModal } > Open modal</ ActionButton >
74
+ </ Flex >
75
+ </ Content >
71
76
</ Dialog >
72
77
</ DialogTrigger >
73
78
< Modal isOpen = { isModalOpen } onClose = { ( ) => setModalOpen ( false ) } >
You can’t perform that action at this time.
0 commit comments