Skip to content

Commit f7c6474

Browse files
dhruvduttkamleshchandnani
authored andcommitted
fix(Text/web,Modal/web): default text whitespace, passthrough modal classname (#189)
1 parent 2773d9b commit f7c6474

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/Modal/web/ModalContent.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ import Space from '../../Space/web';
44
import Flex from '../../Flex/web';
55
import View from '../../View/web';
66

7-
const ModalContent = ({ children }) => (
8-
<Space padding={[3, 5]}>
7+
const ModalContent = ({
8+
className,
9+
children,
10+
}) => (
11+
<Space className={className} padding={[3, 5]}>
912
<Flex flex="auto">
1013
<View style={{ overflow: 'auto' }}>
1114
{children}
@@ -15,6 +18,7 @@ const ModalContent = ({ children }) => (
1518
);
1619

1720
ModalContent.propTypes = {
21+
className: PropTypes.string,
1822
children: PropTypes.node,
1923
};
2024

src/Text/web/Text.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const Text = styled(
2323
line-height: ${(props) => props.component === 'p' ? '1.5' : ''};
2424
text-align: ${(props) => props.align || ''};
2525
overflow: ${(props) => props.truncate ? 'hidden' : ''};
26-
white-space: ${(props) => props.truncate ? 'nowrap' : 'pre-line'};
26+
white-space: ${(props) => props.truncate ? 'nowrap' : ''};
2727
text-overflow: ${(props) => props.truncate ? 'ellipsis' : ''};
2828
padding: 0;
2929
margin: 0;

0 commit comments

Comments
 (0)