From ebbd08f6bb68949dadd8d07aee48a2bdd12d419a 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 e3ef445633078d..3d2e2b0ef4fed6 100644 --- a/src/toggle.jsx +++ b/src/toggle.jsx @@ -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)', }, };