From b8250966408ac114774c0e7fb75a2cc3c4ab3350 Mon Sep 17 00:00:00 2001 From: MathuraMG Date: Thu, 25 Aug 2016 17:46:30 -0400 Subject: [PATCH] make preferences radio buttons --- client/modules/IDE/components/Preferences.js | 74 +++++++++++++++----- client/styles/components/_preferences.scss | 4 ++ 2 files changed, 60 insertions(+), 18 deletions(-) diff --git a/client/modules/IDE/components/Preferences.js b/client/modules/IDE/components/Preferences.js index a705a098..276bd686 100644 --- a/client/modules/IDE/components/Preferences.js +++ b/client/modules/IDE/components/Preferences.js @@ -150,47 +150,85 @@ class Preferences extends React.Component {

Autosave

- - + name="autosave" + id="autosave-off" + className="preference__radio-button" + value="Off" + checked={!this.props.autosave} + /> +

Lint Warning Sound

- - + name="lint warning" + id="lint-warning-off" + className="preference__radio-button" + value="Off" + checked={!this.props.lintWarning} + /> +

Accessible Text-based Canvas

Used with screen reader
+
- - + name="text output" + id="text-output-off" + className="preference__radio-button" + value="Off" + checked={!this.props.textOutput} + /> + +
diff --git a/client/styles/components/_preferences.scss b/client/styles/components/_preferences.scss index 06ca4b70..92892f3b 100644 --- a/client/styles/components/_preferences.scss +++ b/client/styles/components/_preferences.scss @@ -81,6 +81,10 @@ padding-left: #{28 / $base-font-size}rem; } +.preference__radio-button { + @extend %hidden-element; +} + .preference__option { @extend %preference-option; list-style-type: none;