From f4d49f49a5b6523fa6113d9ceee4b3f6018d20b1 Mon Sep 17 00:00:00 2001 From: MathuraMG Date: Sat, 30 Jul 2016 22:46:48 -0400 Subject: [PATCH] add aria-label tag --- client/modules/IDE/components/Console.js | 10 ++++---- client/modules/IDE/components/NewFileForm.js | 2 +- client/modules/IDE/components/Preferences.js | 25 ++++++-------------- client/modules/IDE/components/Sidebar.js | 15 +++++++----- client/modules/IDE/components/Toolbar.js | 16 ++++--------- client/styles/abstracts/_placeholders.scss | 9 ------- client/styles/components/_preferences.scss | 4 ---- client/styles/components/_toolbar.scss | 3 --- 8 files changed, 26 insertions(+), 58 deletions(-) diff --git a/client/modules/IDE/components/Console.js b/client/modules/IDE/components/Console.js index 5455f9d3..d5603a48 100644 --- a/client/modules/IDE/components/Console.js +++ b/client/modules/IDE/components/Console.js @@ -55,15 +55,15 @@ class Console extends React.Component { }); return ( -
+

console

- + +
{childrenToDisplay} diff --git a/client/modules/IDE/components/NewFileForm.js b/client/modules/IDE/components/NewFileForm.js index c46ca9e5..782c13a4 100644 --- a/client/modules/IDE/components/NewFileForm.js +++ b/client/modules/IDE/components/NewFileForm.js @@ -12,7 +12,7 @@ function NewFileForm(props) { placeholder="Name" {...name} /> - + ); } diff --git a/client/modules/IDE/components/Preferences.js b/client/modules/IDE/components/Preferences.js index a7ed6627..0827c0c7 100644 --- a/client/modules/IDE/components/Preferences.js +++ b/client/modules/IDE/components/Preferences.js @@ -27,6 +27,7 @@ function Preferences(props) { className="preferences__exit-button" onClick={props.closePreferences} title="exit" + aria-label="exit preferences" > @@ -37,14 +38,11 @@ function Preferences(props) { -
Increase
-
@@ -72,14 +67,11 @@ function Preferences(props) { -
Increase
-
- - + +
diff --git a/client/modules/IDE/components/Sidebar.js b/client/modules/IDE/components/Sidebar.js index 78119fc5..b680364a 100644 --- a/client/modules/IDE/components/Sidebar.js +++ b/client/modules/IDE/components/Sidebar.js @@ -15,24 +15,27 @@ function Sidebar(props) {

Sketch Files

- + - - +
    diff --git a/client/modules/IDE/components/Toolbar.js b/client/modules/IDE/components/Toolbar.js index da289b1b..660cc82a 100644 --- a/client/modules/IDE/components/Toolbar.js +++ b/client/modules/IDE/components/Toolbar.js @@ -23,18 +23,13 @@ function Toolbar(props) { return (
    p5js Logo - - - -
    -
    ); } diff --git a/client/styles/abstracts/_placeholders.scss b/client/styles/abstracts/_placeholders.scss index 785640a6..9675bb59 100644 --- a/client/styles/abstracts/_placeholders.scss +++ b/client/styles/abstracts/_placeholders.scss @@ -108,15 +108,6 @@ } } -%hidden-label { - position:absolute; - left:-10000px; - top:auto; - width:1px; - height:1px; - overflow:hidden; -} - %modal { background-color: $light-modal-background-color; border: 1px solid $light-modal-border-color; diff --git a/client/styles/components/_preferences.scss b/client/styles/components/_preferences.scss index 4ceb2a9b..fd6a3cf6 100644 --- a/client/styles/components/_preferences.scss +++ b/client/styles/components/_preferences.scss @@ -79,7 +79,3 @@ @extend %preference-option--selected; } } - -.preference__button-label { - @extend %hidden-label -} diff --git a/client/styles/components/_toolbar.scss b/client/styles/components/_toolbar.scss index cd62e28f..3716c907 100644 --- a/client/styles/components/_toolbar.scss +++ b/client/styles/components/_toolbar.scss @@ -55,9 +55,6 @@ } } -.toolbar__button-label { - @extend %hidden-label -} .toolbar__project-owner { margin-left: #{5 / $base-font-size}rem; }