Fix a bunch of layout issues
This commit is contained in:
@@ -7,11 +7,13 @@ class Text extends Component {
|
||||
static propTypes = {
|
||||
size: PropTypes.string,
|
||||
margin: PropTypes.number,
|
||||
children: PropTypes.node
|
||||
children: PropTypes.node,
|
||||
tone: PropTypes.string
|
||||
}
|
||||
|
||||
static defaultProps = {
|
||||
size: 'medium',
|
||||
tone: 'normal',
|
||||
margin: 0
|
||||
}
|
||||
|
||||
@@ -21,7 +23,8 @@ class Text extends Component {
|
||||
display: 'inline-block',
|
||||
fontSize: fontInfo.size[this.props.size],
|
||||
fontFamily: fontInfo.family,
|
||||
margin: this.props.margin
|
||||
margin: this.props.margin,
|
||||
color: fontInfo.color[this.props.tone],
|
||||
}}>{this.props.children}</span>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user