Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
fix(Grid): Change default column flexDirection to column; pass remain…
Browse files Browse the repository at this point in the history
…ing props to Row
  • Loading branch information
kylealwyn committed Aug 3, 2018
1 parent 1eea459 commit cd95cfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Grid/Column.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const StyledColumn = createComponent({
}).extend`
box-sizing: border-box;
flex: 1 0 auto;
flex-direction: column;
padding-left: ${getPadding}px;
padding-right: ${getPadding}px;
Expand Down
4 changes: 2 additions & 2 deletions src/Grid/Row.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const StyledRow = createComponent({
}}
`;

const Row = ({ children, gutter, reverse, collapse, vertical }) => (
<StyledRow gutter={gutter} reverse={reverse} collapse={collapse} vertical={vertical}>
const Row = ({ children, gutter, reverse, collapse, vertical, ...props }) => (
<StyledRow {...props} gutter={gutter} reverse={reverse} collapse={collapse} vertical={vertical}>
{React.Children.map(children, child => React.cloneElement(child, { gutter, collapse, vertical }))}
</StyledRow>
);
Expand Down

0 comments on commit cd95cfe

Please sign in to comment.