Skip to content

Commit

Permalink
feat(gridBox): add text align
Browse files Browse the repository at this point in the history
  • Loading branch information
zouxuoz committed Aug 10, 2018
1 parent 7a4eb48 commit f1f2442
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/atoms/Grid/GridBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ type GridBoxProps = {|
alignItems?: 'start' | 'end' | 'center' | 'stretch' | 'space-around' | 'space-between' | 'space-evenly',
/** align-content css rule*/
alignContent?: 'start' | 'end' | 'center' | 'stretch' | 'space-around' | 'space-between' | 'space-evenly',
/** text-align css rule*/
textAlign?: 'left' | 'right' | 'center' | 'justify',
|};

const name = 'gridBox';
Expand Down Expand Up @@ -74,6 +76,10 @@ const StyledTag = createStyledTag(name, (props) => {
style.gridArea = props.area;
}

if (props.textAlign) {
style.textAlign = props.textAlign;
}

return style;
});

Expand Down

0 comments on commit f1f2442

Please sign in to comment.