Skip to content

Commit

Permalink
Make 46px less magic
Browse files Browse the repository at this point in the history
  • Loading branch information
KapJI authored and alitaheri committed Oct 27, 2015
1 parent c75f039 commit c86498e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/toggle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const Toggle = React.createClass({
},
label: {
color: this.props.disabled ? this.getTheme().labelDisabledColor : this.getTheme().labelColor,
width: 'calc(100% - 46px)',
width: 'calc(100% - ' + (toggleTrackWidth + 10) + 'px)',
},
};

Expand Down

0 comments on commit c86498e

Please sign in to comment.