From c86498efd75af29002bab179d40dd8d9755dabe5 Mon Sep 17 00:00:00 2001 From: Ruslan Sayfutdinov Date: Wed, 21 Oct 2015 00:55:06 +0300 Subject: [PATCH] Make 46px less magic --- src/toggle.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/toggle.jsx b/src/toggle.jsx index 63694b125624b8..eaffdf6cfdf784 100644 --- a/src/toggle.jsx +++ b/src/toggle.jsx @@ -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)', }, };