Skip to content

Commit

Permalink
fix(Text/web,Modal/web): default text whitespace, passthrough modal c…
Browse files Browse the repository at this point in the history
…lassname (#189)
  • Loading branch information
dhruvdutt authored and kamleshchandnani committed Mar 18, 2019
1 parent 2773d9b commit f7c6474
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/Modal/web/ModalContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ import Space from '../../Space/web';
import Flex from '../../Flex/web';
import View from '../../View/web';

const ModalContent = ({ children }) => (
<Space padding={[3, 5]}>
const ModalContent = ({
className,
children,
}) => (
<Space className={className} padding={[3, 5]}>
<Flex flex="auto">
<View style={{ overflow: 'auto' }}>
{children}
Expand All @@ -15,6 +18,7 @@ const ModalContent = ({ children }) => (
);

ModalContent.propTypes = {
className: PropTypes.string,
children: PropTypes.node,
};

Expand Down
2 changes: 1 addition & 1 deletion src/Text/web/Text.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Text = styled(
line-height: ${(props) => props.component === 'p' ? '1.5' : ''};
text-align: ${(props) => props.align || ''};
overflow: ${(props) => props.truncate ? 'hidden' : ''};
white-space: ${(props) => props.truncate ? 'nowrap' : 'pre-line'};
white-space: ${(props) => props.truncate ? 'nowrap' : ''};
text-overflow: ${(props) => props.truncate ? 'ellipsis' : ''};
padding: 0;
margin: 0;
Expand Down

0 comments on commit f7c6474

Please sign in to comment.