Skip to content

Commit

Permalink
Plugins: Updated the curser pointer in the toggles to not display the…
Browse files Browse the repository at this point in the history
… as pointers when toggles are disabled
  • Loading branch information
enejb authored and johnHackworth committed Dec 21, 2015
1 parent 13e2dc4 commit 8252efc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions client/components/forms/form-toggle/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@

.form-toggle__label {
cursor: pointer;

.is-disabled & {
cursor: default;
}
}

.form-toggle {
Expand Down
2 changes: 1 addition & 1 deletion client/my-sites/plugins/plugin-action/plugin-action.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ module.exports = React.createClass( {

render: function() {
return (
<div className={ classNames( 'plugin-action', { 'is-disabled': this.props.disabled }, this.props.className ) }>
<div className={ classNames( 'plugin-action', { 'is-disabled': this.props.disabled, 'has-disabled-info': !! this.props.disabledInfo }, this.props.className ) }>
{ this.renderInner() }
</div>
);
Expand Down
5 changes: 5 additions & 0 deletions client/my-sites/plugins/plugin-action/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@

.is-disabled & {
color: lighten( $gray, 30% );
cursor: default;
}

.has-disabled-info & {
cursor: pointer;
}
}

Expand Down

0 comments on commit 8252efc

Please sign in to comment.