From 46d58014ff2b96e9fc659316192ddc1f77e12d00 Mon Sep 17 00:00:00 2001 From: MathuraMG Date: Wed, 28 Sep 2016 12:09:42 -0400 Subject: [PATCH] add focus and labels --- client/modules/IDE/components/About.js | 8 ++- client/modules/IDE/components/Editor.js | 3 +- client/modules/IDE/components/ShareModal.js | 77 +++++++++++---------- 3 files changed, 49 insertions(+), 39 deletions(-) diff --git a/client/modules/IDE/components/About.js b/client/modules/IDE/components/About.js index 0959ffe5..534c6642 100644 --- a/client/modules/IDE/components/About.js +++ b/client/modules/IDE/components/About.js @@ -4,13 +4,17 @@ const exitUrl = require('../../../images/exit.svg'); import { browserHistory } from 'react-router'; class About extends React.Component { + componentDidMount() { + this.refs.about.focus(); + } + closeAboutModal() { browserHistory.goBack(); } render() { return ( -
+

About

- + ); } } diff --git a/client/modules/IDE/components/Editor.js b/client/modules/IDE/components/Editor.js index ae8c415b..93508ed2 100644 --- a/client/modules/IDE/components/Editor.js +++ b/client/modules/IDE/components/Editor.js @@ -148,6 +148,7 @@ class Editor extends React.Component { > -