File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,11 @@ import Space from '../../Space/web';
4
4
import Flex from '../../Flex/web' ;
5
5
import View from '../../View/web' ;
6
6
7
- const ModalContent = ( { children } ) => (
8
- < Space padding = { [ 3 , 5 ] } >
7
+ const ModalContent = ( {
8
+ className,
9
+ children,
10
+ } ) => (
11
+ < Space className = { className } padding = { [ 3 , 5 ] } >
9
12
< Flex flex = "auto" >
10
13
< View style = { { overflow : 'auto' } } >
11
14
{ children }
@@ -15,6 +18,7 @@ const ModalContent = ({ children }) => (
15
18
) ;
16
19
17
20
ModalContent . propTypes = {
21
+ className : PropTypes . string ,
18
22
children : PropTypes . node ,
19
23
} ;
20
24
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const Text = styled(
23
23
line-height: ${ ( props ) => props . component === 'p' ? '1.5' : '' } ;
24
24
text-align: ${ ( props ) => props . align || '' } ;
25
25
overflow: ${ ( props ) => props . truncate ? 'hidden' : '' } ;
26
- white-space: ${ ( props ) => props . truncate ? 'nowrap' : 'pre-line ' } ;
26
+ white-space: ${ ( props ) => props . truncate ? 'nowrap' : '' } ;
27
27
text-overflow: ${ ( props ) => props . truncate ? 'ellipsis' : '' } ;
28
28
padding: 0;
29
29
margin: 0;
You can’t perform that action at this time.
0 commit comments