From bdc315320d75c9613b5c7027a279bf9866e346ef Mon Sep 17 00:00:00 2001 From: DIonysos Dajka Date: Thu, 18 Jul 2019 16:53:13 +0200 Subject: [PATCH] fix: Allow 'stretch' for Flex align prop --- src/Flex/index.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Flex/index.js b/src/Flex/index.js index 320889a5..0c8bf80b 100644 --- a/src/Flex/index.js +++ b/src/Flex/index.js @@ -27,8 +27,6 @@ const Flex = styled.div` p.column && ` flex-direction: column; - align-items: stretch; - height: 100%; `} @@ -46,7 +44,14 @@ Flex.defaultProps = { Flex.propTypes = { /** Align children on the cross axis */ - align: PropTypes.oneOf(['top', 'left', 'center', 'bottom', 'right']), + align: PropTypes.oneOf([ + 'top', + 'left', + 'center', + 'bottom', + 'right', + 'stretch', + ]), /** Arrange children in a column instead of a row. * Setting this also sets the wrapper's height to `100%` */ column: PropTypes.bool,