parent
800e87ae91
commit
7a75bce1b4
|
@ -86,13 +86,13 @@ export default class IconButton extends React.PureComponent {
|
|||
render () {
|
||||
let style = {
|
||||
fontSize: `${this.props.size}px`,
|
||||
height: `${this.props.size * 1.28571429}px`,
|
||||
height: '1.28571429em',
|
||||
lineHeight: `${this.props.size}px`,
|
||||
...this.props.style,
|
||||
...(this.props.active ? this.props.activeStyle : {}),
|
||||
};
|
||||
if (!this.props.label) {
|
||||
style.width = `${this.props.size * 1.28571429}px`;
|
||||
style.width = '1.28571429em';
|
||||
} else {
|
||||
style.textAlign = 'left';
|
||||
}
|
||||
|
|
|
@ -22,8 +22,8 @@ $emojis-requiring-inversion: 'back' 'copyright' 'curly_loop' 'currency_exchange'
|
|||
content: "\F00C";
|
||||
font-size: 50%;
|
||||
font-family: FontAwesome;
|
||||
right: -5px;
|
||||
top: -4px;
|
||||
right: -0.55em;
|
||||
top: -0.44em;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue