Skip to content

Commit

Permalink
Make 46px less magic
Browse files Browse the repository at this point in the history
  • Loading branch information
KapJI committed Oct 20, 2015
1 parent d907417 commit ebbd08f
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 @@ -79,7 +79,7 @@ let 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 ebbd08f

Please sign in to comment.