From 01975b7e4dcb5770bea1be31494071fd801b304d Mon Sep 17 00:00:00 2001 From: Matthew Taylor Date: Tue, 12 Jan 2016 13:26:49 -0500 Subject: [PATCH 1/2] Add `alt` attribute to image tags See https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_text_02 --- src/components/activity/activity.jsx | 2 +- src/components/navigation/navigation.jsx | 2 +- src/components/news/news.jsx | 2 +- src/components/thumbnail/thumbnail.jsx | 5 +-- src/components/welcome/welcome.jsx | 6 ++-- src/views/hoc/hoc.jsx | 40 ++++++++++++------------ 6 files changed, 29 insertions(+), 28 deletions(-) diff --git a/src/components/activity/activity.jsx b/src/components/activity/activity.jsx index a42bcb5eb..9126e641b 100644 --- a/src/components/activity/activity.jsx +++ b/src/components/activity/activity.jsx @@ -46,7 +46,7 @@ var Activity = React.createClass({ return (
  • - +

    diff --git a/src/components/navigation/navigation.jsx b/src/components/navigation/navigation.jsx index 7286e6cbb..5df79e72d 100644 --- a/src/components/navigation/navigation.jsx +++ b/src/components/navigation/navigation.jsx @@ -262,7 +262,7 @@ var Navigation = React.createClass({

  • ,
  • - + {this.state.session.user.username} - +

    {item.headline}

    {item.copy}

    diff --git a/src/components/thumbnail/thumbnail.jsx b/src/components/thumbnail/thumbnail.jsx index 502e1182d..e1e483136 100644 --- a/src/components/thumbnail/thumbnail.jsx +++ b/src/components/thumbnail/thumbnail.jsx @@ -15,7 +15,8 @@ var Thumbnail = React.createClass({ src: '', type: 'project', showLoves: false, - showRemixes: false + showRemixes: false, + alt: '' }; }, render: function () { @@ -57,7 +58,7 @@ var Thumbnail = React.createClass({ return (
    - + {this.props.alt}
    {this.props.title} diff --git a/src/components/welcome/welcome.jsx b/src/components/welcome/welcome.jsx index 15fa61ce4..74ba01a59 100644 --- a/src/components/welcome/welcome.jsx +++ b/src/components/welcome/welcome.jsx @@ -35,7 +35,7 @@ var Welcome = React.createClass({ - + Get Started
    @@ -47,7 +47,7 @@ var Welcome = React.createClass({ - + Starter Projects
    @@ -59,7 +59,7 @@ var Welcome = React.createClass({ - + Connect
    diff --git a/src/views/hoc/hoc.jsx b/src/views/hoc/hoc.jsx index b8319f56a..3d14cc13d 100644 --- a/src/views/hoc/hoc.jsx +++ b/src/views/hoc/hoc.jsx @@ -50,7 +50,7 @@ var Hoc = React.createClass({
    - +