Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
fix: Allow 'stretch' for Flex align prop
Browse files Browse the repository at this point in the history
  • Loading branch information
diondiondion committed Jul 18, 2019
1 parent 3a09bfa commit bdc3153
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/Flex/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ const Flex = styled.div`
p.column &&
`
flex-direction: column;
align-items: stretch;
height: 100%;
`}
Expand All @@ -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,
Expand Down

0 comments on commit bdc3153

Please sign in to comment.