Skip to content

Commit

Permalink
added inputStyle prop for enhanced switch
Browse files Browse the repository at this point in the history
  • Loading branch information
pbambusek committed Sep 21, 2015
1 parent 90c256e commit f3ceae4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/enhanced-switch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ let EnhancedSwitch = React.createClass({
thumbStyle: React.PropTypes.object,
trackStyle: React.PropTypes.object,
labelStyle: React.PropTypes.object,
inputStyle: React.PropTypes.object,
name: React.PropTypes.string,
value: React.PropTypes.string,
label: React.PropTypes.string,
Expand Down Expand Up @@ -212,7 +213,7 @@ let EnhancedSwitch = React.createClass({
let inputProps = {
ref: "checkbox",
type: this.props.inputType,
style: this.mergeAndPrefix(styles.input),
style: this.mergeAndPrefix(styles.input, this.props.inputStyle),
name: this.props.name,
value: this.props.value,
defaultChecked: this.props.defaultSwitched,
Expand Down

0 comments on commit f3ceae4

Please sign in to comment.