Skip to content

Commit

Permalink
Merge pull request #1028 from AlonGvili/patch-1
Browse files Browse the repository at this point in the history
Remove icon margin right inside a button
  • Loading branch information
adamdriscoll authored Aug 17, 2019
2 parents d5b6123 + a18016b commit ed2ae2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/UniversalDashboard.Materialize/Components/ud-button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class UDButton extends React.Component {

var icon = null;
if (this.props.icon) {
icon = <UdIcon icon={this.props.icon} style={{marginRight: '5px'}}/>
icon = <UdIcon icon={this.props.icon} style={{marginRight: this.props.floating || !this.props.text ? 'unset' : '5px'}}/>
}

return <Button
Expand All @@ -40,4 +40,4 @@ export default class UDButton extends React.Component {
{this.props.text}
</Button>
}
}
}

0 comments on commit ed2ae2d

Please sign in to comment.