diff --git a/client/styles/components/_preferences.scss b/client/styles/components/_preferences.scss index d33c355c..e9bfedf1 100644 --- a/client/styles/components/_preferences.scss +++ b/client/styles/components/_preferences.scss @@ -92,6 +92,13 @@ color: $light-inactive-text-color; } +.preference__preview-button { + @extend %preference-option; + padding: 0; + padding-left: #{110 / $base-font-size}rem; + outline: none; +} + .preference__options { display: flex; justify-content: space-between; From 8de170135e8a608c3adfa03f48503830a61538d4 Mon Sep 17 00:00:00 2001 From: MathuraMG Date: Thu, 1 Sep 2016 12:51:38 -0400 Subject: [PATCH 2/2] switch to react refs --- client/modules/IDE/components/TextOutput.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/modules/IDE/components/TextOutput.js b/client/modules/IDE/components/TextOutput.js index 515bfc28..777dd370 100644 --- a/client/modules/IDE/components/TextOutput.js +++ b/client/modules/IDE/components/TextOutput.js @@ -2,13 +2,14 @@ import React from 'react'; class TextOutput extends React.Component { componentDidMount() { - document.getElementById('canvas-sub').focus(); + this.refs.canvasTextOutput.focus(); } render() { return (