Skip to content

Commit 10b7202

Browse files
authored
fix: Modal background (#126)
1 parent 38e68a0 commit 10b7202

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/fuselage/src/components/Modal/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ import { Icon } from '../Icon';
77
import { Tile } from '../Tile';
88
import { ModalBackdrop, ModalContainer, ModalPortal, ModalStack } from './Stack';
99

10-
export const Modal = ({ children, ...props }) =>
10+
export const Modal = React.forwardRef(({ children, ...props }, ref) =>
1111
<Flex.Container>
1212
<Box is='dialog' componentClassName='rcx-modal' { ...props }>
1313
<Flex.Container direction='column'>
1414
<Flex.Item grow={1}>
15-
<Tile elevation='2' className='rcx-modal__inner' padding='none'>
15+
<Tile ref={ref} elevation='2' className='rcx-modal__inner' padding='none'>
1616
{children}
1717
</Tile>
1818
</Flex.Item>
1919
</Flex.Container>
2020
</Box>
21-
</Flex.Container>;
21+
</Flex.Container>);
2222

2323
export const ModalHeader = ({ children, ...props }) =>
2424
<Margins all='x32'>

packages/fuselage/src/components/Modal/styles.scss

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
max-height: $sizes-sh;
88
margin: auto;
99

10+
background: none;
11+
1012
&__inner {
1113
min-width: 0;
1214
}

0 commit comments

Comments
 (0)