Skip to content

Commit a5afe6d

Browse files
Merge pull request mui#1686 from KapJI/toggle-layout
[Toggle] Fix layout
2 parents b7e4cd6 + ebbd08f commit a5afe6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/toggle.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ const Toggle = React.createClass({
9999
},
100100
label: {
101101
color: this.props.disabled ? this.getTheme().labelDisabledColor : this.getTheme().labelColor,
102+
width: 'calc(100% - ' + (toggleTrackWidth + 10) + 'px)',
102103
},
103104
};
104105

0 commit comments

Comments
 (0)