Skip to content

Commit

Permalink
[Toggle] added 'cursor': 'not-allowed' for disabled state
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Shulipa committed May 5, 2016
1 parent 87ecfd9 commit 7abe04e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Toggle/Toggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,15 @@ function getStyles(props, context, state) {
},
trackWhenDisabled: {
backgroundColor: toggle.trackDisabledColor,
cursor: 'not-allowed',
},
thumbWhenDisabled: {
backgroundColor: toggle.thumbDisabledColor,
cursor: 'not-allowed',
},
label: {
color: disabled ? toggle.labelDisabledColor : toggle.labelColor,
cursor: disabled ? 'not-allowed' : 'initial',
width: `calc(100% - ${(toggleTrackWidth + 10)}px)`,
},
};
Expand Down

0 comments on commit 7abe04e

Please sign in to comment.