Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Gray out label when disabled
Browse files Browse the repository at this point in the history
Fix #7634
  • Loading branch information
user512 committed Jan 1, 2018
1 parent f7d8df6 commit 740a84d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/renderer/components/common/switchControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ class SwitchControl extends ImmutableComponent {
styles.switchControl__text__label,
styles.switchControl__text__label_right,
this.props.small && styles.switchControl__text__label_small,
this.props.customStyleTextRight
this.props.customStyleTextRight,
this.props.disabled && styles.switchControl__text_disabled
)}
data-l10n-id={this.props.rightl10nId}
data-l10n-args={this.props.rightl10nArgs}
Expand Down

0 comments on commit 740a84d

Please sign in to comment.