Skip to content

Commit ebbd08f

Browse files
committed
Make 46px less magic
1 parent d907417 commit ebbd08f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/toggle.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ let Toggle = React.createClass({
7979
},
8080
label: {
8181
color: this.props.disabled ? this.getTheme().labelDisabledColor : this.getTheme().labelColor,
82-
width: 'calc(100% - 46px)',
82+
width: 'calc(100% - ' + (toggleTrackWidth + 10) + 'px)',
8383
},
8484
};
8585

0 commit comments

Comments
 (0)