diff --git a/client/modules/IDE/components/Preferences.js b/client/modules/IDE/components/Preferences.js index 276bd686..da8c6251 100644 --- a/client/modules/IDE/components/Preferences.js +++ b/client/modules/IDE/components/Preferences.js @@ -38,38 +38,7 @@ class Preferences extends React.Component { preferences: true, 'preferences--selected': this.props.isVisible }); - let preferencesTabOptionClass = classNames({ - preference__option: true, - 'preference__option--selected': this.props.isTabIndent - }); - let preferencesSpaceOptionClass = classNames({ - preference__option: true, - 'preference__option--selected': !this.props.isTabIndent - }); - let autosaveOnClass = classNames({ - preference__option: true, - 'preference__option--selected': this.props.autosave - }); - let autosaveOffClass = classNames({ - preference__option: true, - 'preference__option--selected': !this.props.autosave - }); - let lintWarningOnClass = classNames({ - preference__option: true, - 'preference__option--selected': this.props.lintWarning - }); - let lintWarningOffClass = classNames({ - preference__option: true, - 'preference__option--selected': !this.props.lintWarning - }); - let textOutputOnClass = classNames({ - preference__option: true, - 'preference__option--selected': this.props.textOutput - }); - let textOutputOffClass = classNames({ - preference__option: true, - 'preference__option--selected': !this.props.textOutput - }); + return (
@@ -143,8 +112,28 @@ class Preferences extends React.Component {
Increase
- - + + + +
@@ -160,7 +149,7 @@ class Preferences extends React.Component { value="On" checked={this.props.autosave} /> - + this.props.setAutosave(false)} @@ -171,7 +160,7 @@ class Preferences extends React.Component { value="Off" checked={!this.props.autosave} /> - +
@@ -187,7 +176,7 @@ class Preferences extends React.Component { value="On" checked={this.props.lintWarning} /> - + this.props.setLintWarning(false)} @@ -198,7 +187,7 @@ class Preferences extends React.Component { value="Off" checked={!this.props.lintWarning} /> - +
@@ -216,7 +205,7 @@ class Preferences extends React.Component { value="On" checked={this.props.textOutput} /> - + this.props.setTextOutput(false)} @@ -227,7 +216,7 @@ class Preferences extends React.Component { value="Off" checked={!this.props.textOutput} /> - +
diff --git a/client/styles/abstracts/_placeholders.scss b/client/styles/abstracts/_placeholders.scss index aa8c9f39..dadf6267 100644 --- a/client/styles/abstracts/_placeholders.scss +++ b/client/styles/abstracts/_placeholders.scss @@ -104,9 +104,6 @@ &:hover { color: $light-primary-text-color; } - &--selected { - color: $light-primary-text-color; - } } %modal { diff --git a/client/styles/components/_preferences.scss b/client/styles/components/_preferences.scss index 92892f3b..d33c355c 100644 --- a/client/styles/components/_preferences.scss +++ b/client/styles/components/_preferences.scss @@ -89,9 +89,7 @@ @extend %preference-option; list-style-type: none; padding: 0; - &--selected { - @extend %preference-option--selected; - } + color: $light-inactive-text-color; } .preference__options { @@ -100,6 +98,10 @@ width: #{70 / $base-font-size}rem; } +.preference__radio-button:checked + .preference__option { + color: $light-primary-text-color; +} + .preference--hidden { @extend %hidden-element; }