From f7778d78ce2d858379b7872e4c9e83422e4c9ff5 Mon Sep 17 00:00:00 2001 From: Pete Miller Date: Sun, 13 Aug 2017 19:07:41 -0700 Subject: [PATCH 1/2] SwitchControl text to left, right or top of control now toggles checked state Partial resolution for #8243 since many usages do not use the built-in text but render their own text separately. A subsequent commit will address converting these usages. This also converts text from span to label for accessbility and more appropriate renderer defaults (the cursor). --- .../components/common/switchControl.js | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/app/renderer/components/common/switchControl.js b/app/renderer/components/common/switchControl.js index 7a1c990cd09..43fc29c663d 100644 --- a/app/renderer/components/common/switchControl.js +++ b/app/renderer/components/common/switchControl.js @@ -36,18 +36,19 @@ class SwitchControl extends ImmutableComponent { > { this.props.leftl10nId && this.props.topl10nId - ?
 
+ ?
 
: (this.props.leftl10nId - ? + ?