mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
Add alt
attribute to image tags
See https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_text_02
This commit is contained in:
parent
4821383d00
commit
01975b7e4d
6 changed files with 29 additions and 28 deletions
|
@ -46,7 +46,7 @@ var Activity = React.createClass({
|
||||||
return (
|
return (
|
||||||
<li key={item.pk}>
|
<li key={item.pk}>
|
||||||
<a href={actorProfileUrl}>
|
<a href={actorProfileUrl}>
|
||||||
<img src={item.actor.thumbnail_url} width="34" height="34" />
|
<img src={item.actor.thumbnail_url} width="34" height="34" alt="" />
|
||||||
<p dangerouslySetInnerHTML={{__html: activityMessageHTML}}></p>
|
<p dangerouslySetInnerHTML={{__html: activityMessageHTML}}></p>
|
||||||
<p>
|
<p>
|
||||||
<span className="stamp">
|
<span className="stamp">
|
||||||
|
|
|
@ -262,7 +262,7 @@ var Navigation = React.createClass({
|
||||||
</li>,
|
</li>,
|
||||||
<li className="link right account-nav" key="account-nav">
|
<li className="link right account-nav" key="account-nav">
|
||||||
<a className="userInfo" href="#" onClick={this.handleAccountNavClick}>
|
<a className="userInfo" href="#" onClick={this.handleAccountNavClick}>
|
||||||
<Avatar src={this.state.session.user.thumbnailUrl} />
|
<Avatar src={this.state.session.user.thumbnailUrl} alt="" />
|
||||||
{this.state.session.user.username}
|
{this.state.session.user.username}
|
||||||
</a>
|
</a>
|
||||||
<Dropdown
|
<Dropdown
|
||||||
|
|
|
@ -42,7 +42,7 @@ var News = React.createClass({
|
||||||
return (
|
return (
|
||||||
<li key={item.id}>
|
<li key={item.id}>
|
||||||
<a href={item.url}>
|
<a href={item.url}>
|
||||||
<img src={item.image} width="53" height="53" />
|
<img src={item.image} width="53" height="53" alt="" />
|
||||||
<h4>{item.headline}</h4>
|
<h4>{item.headline}</h4>
|
||||||
<p>{item.copy}</p>
|
<p>{item.copy}</p>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -15,7 +15,8 @@ var Thumbnail = React.createClass({
|
||||||
src: '',
|
src: '',
|
||||||
type: 'project',
|
type: 'project',
|
||||||
showLoves: false,
|
showLoves: false,
|
||||||
showRemixes: false
|
showRemixes: false,
|
||||||
|
alt: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
render: function () {
|
render: function () {
|
||||||
|
@ -57,7 +58,7 @@ var Thumbnail = React.createClass({
|
||||||
return (
|
return (
|
||||||
<div className={classes} >
|
<div className={classes} >
|
||||||
<a className="thumbnail-image" href={this.props.href}>
|
<a className="thumbnail-image" href={this.props.href}>
|
||||||
<img src={this.props.src} />
|
<img src={this.props.src} alt={this.props.alt} />
|
||||||
</a>
|
</a>
|
||||||
<div className="thumbnail-title">
|
<div className="thumbnail-title">
|
||||||
<a href={this.props.href}>{this.props.title}</a>
|
<a href={this.props.href}>{this.props.title}</a>
|
||||||
|
|
|
@ -35,7 +35,7 @@ var Welcome = React.createClass({
|
||||||
</a>
|
</a>
|
||||||
</h4>
|
</h4>
|
||||||
<a href="/projects/editor/?tip_bar=getStarted">
|
<a href="/projects/editor/?tip_bar=getStarted">
|
||||||
<img src="/images/welcome-learn.png" />
|
<img src="/images/welcome-learn.png" alt="Get Started" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div className="welcome-col green">
|
<div className="welcome-col green">
|
||||||
|
@ -47,7 +47,7 @@ var Welcome = React.createClass({
|
||||||
</a>
|
</a>
|
||||||
</h4>
|
</h4>
|
||||||
<a href="/starter_projects/">
|
<a href="/starter_projects/">
|
||||||
<img src="/images/welcome-try.png" />
|
<img src="/images/welcome-try.png" alt="Starter Projects" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div className="welcome-col pink">
|
<div className="welcome-col pink">
|
||||||
|
@ -59,7 +59,7 @@ var Welcome = React.createClass({
|
||||||
</a>
|
</a>
|
||||||
</h4>
|
</h4>
|
||||||
<a href="/studios/146521/">
|
<a href="/studios/146521/">
|
||||||
<img src="/images/welcome-connect.png" />
|
<img src="/images/welcome-connect.png" alt="Connect" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
|
@ -50,7 +50,7 @@ var Hoc = React.createClass({
|
||||||
<div className="card">
|
<div className="card">
|
||||||
<a href="/projects/editor/?tip_bar=name">
|
<a href="/projects/editor/?tip_bar=name">
|
||||||
<div className="card-info" onMouseEnter={this.onCardEnter.bind(this, 'name-bg')}>
|
<div className="card-info" onMouseEnter={this.onCardEnter.bind(this, 'name-bg')}>
|
||||||
<img src="/images/hoc2015/name-tutorial.jpg" />
|
<img src="/images/hoc2015/name-tutorial.jpg" alt="" />
|
||||||
<Button>
|
<Button>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='general.tipsAnimateYourNameTitle'
|
id='general.tipsAnimateYourNameTitle'
|
||||||
|
@ -63,7 +63,7 @@ var Hoc = React.createClass({
|
||||||
<div className="card" onMouseEnter={this.onCardEnter.bind(this, 'wbb-bg')}>
|
<div className="card" onMouseEnter={this.onCardEnter.bind(this, 'wbb-bg')}>
|
||||||
<a href="/hide/">
|
<a href="/hide/">
|
||||||
<div className="card-info">
|
<div className="card-info">
|
||||||
<img src="/images/hoc2015/hide-seek-tutorial.jpg" />
|
<img src="/images/hoc2015/hide-seek-tutorial.jpg" alt="" />
|
||||||
<Button>
|
<Button>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='general.tipsHideAndSeekTitle'
|
id='general.tipsHideAndSeekTitle'
|
||||||
|
@ -76,7 +76,7 @@ var Hoc = React.createClass({
|
||||||
<div className="card" onMouseEnter={this.onCardEnter.bind(this, 'dance-bg')}>
|
<div className="card" onMouseEnter={this.onCardEnter.bind(this, 'dance-bg')}>
|
||||||
<a href="/projects/editor/?tip_bar=dance">
|
<a href="/projects/editor/?tip_bar=dance">
|
||||||
<div className="card-info">
|
<div className="card-info">
|
||||||
<img src="/images/hoc2015/dance-tutorial.jpg" />
|
<img src="/images/hoc2015/dance-tutorial.jpg" alt="" />
|
||||||
<Button>
|
<Button>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='general.tipsDanceTitle'
|
id='general.tipsDanceTitle'
|
||||||
|
@ -142,7 +142,7 @@ var Hoc = React.createClass({
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="resource">
|
<div className="resource">
|
||||||
<img src="/svgs/tips-card.svg" />
|
<img src="/svgs/tips-card.svg" alt="" />
|
||||||
<div className="resource-info">
|
<div className="resource-info">
|
||||||
<h5>
|
<h5>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
|
@ -163,7 +163,7 @@ var Hoc = React.createClass({
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="resource">
|
<div className="resource">
|
||||||
<img src="/svgs/tips-card.svg" />
|
<img src="/svgs/tips-card.svg" alt="" />
|
||||||
<div className="resource-info">
|
<div className="resource-info">
|
||||||
<h5>
|
<h5>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
|
@ -184,7 +184,7 @@ var Hoc = React.createClass({
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="resource">
|
<div className="resource">
|
||||||
<img src="/svgs/tips-card.svg" />
|
<img src="/svgs/tips-card.svg" alt="" />
|
||||||
<div className="resource-info">
|
<div className="resource-info">
|
||||||
<h5>
|
<h5>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
|
@ -223,7 +223,7 @@ var Hoc = React.createClass({
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="column">
|
<div className="column">
|
||||||
<img src="/images/hoc2015/tips-test-animation.gif" />
|
<img src="/images/hoc2015/tips-test-animation.gif" alt="Tips Window Animation" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@ -248,7 +248,7 @@ var Hoc = React.createClass({
|
||||||
<div className="card">
|
<div className="card">
|
||||||
<a href="/projects/editor/?tip_bar=getStarted">
|
<a href="/projects/editor/?tip_bar=getStarted">
|
||||||
<div className="card-info">
|
<div className="card-info">
|
||||||
<img src="/images/hoc2015/getting-started-tutorial.jpg" />
|
<img src="/images/hoc2015/getting-started-tutorial.jpg" alt="" />
|
||||||
<Button>
|
<Button>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='general.tipsGetStarted'
|
id='general.tipsGetStarted'
|
||||||
|
@ -261,7 +261,7 @@ var Hoc = React.createClass({
|
||||||
<div className="card">
|
<div className="card">
|
||||||
<a href="/bearstack/">
|
<a href="/bearstack/">
|
||||||
<div className="card-info">
|
<div className="card-info">
|
||||||
<img src="/images/hoc2015/bearstack-tutorial.jpg" />
|
<img src="/images/hoc2015/bearstack-tutorial.jpg" alt="" />
|
||||||
<Button>
|
<Button>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='general.tipsBearstack'
|
id='general.tipsBearstack'
|
||||||
|
@ -274,7 +274,7 @@ var Hoc = React.createClass({
|
||||||
<div className="card">
|
<div className="card">
|
||||||
<a href="/hoops">
|
<a href="/hoops">
|
||||||
<div className="card-info">
|
<div className="card-info">
|
||||||
<img src="/images/hoc2015/bball-tutorial.jpg" />
|
<img src="/images/hoc2015/bball-tutorial.jpg" alt="" />
|
||||||
<Button>
|
<Button>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='general.tipsBBallHoops'
|
id='general.tipsBBallHoops'
|
||||||
|
@ -305,7 +305,7 @@ var Hoc = React.createClass({
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="studio">
|
<div className="studio">
|
||||||
<img src="/svgs/studio.svg" />
|
<img src="/svgs/studio.svg" alt="" />
|
||||||
<div className="studio-info">
|
<div className="studio-info">
|
||||||
<a href="/studios/432299/">
|
<a href="/studios/432299/">
|
||||||
<h5>
|
<h5>
|
||||||
|
@ -318,7 +318,7 @@ var Hoc = React.createClass({
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="studio">
|
<div className="studio">
|
||||||
<img src="/svgs/studio.svg" />
|
<img src="/svgs/studio.svg" alt="" />
|
||||||
<div className="studio-info">
|
<div className="studio-info">
|
||||||
<a href="/studios/1672166/">
|
<a href="/studios/1672166/">
|
||||||
<h5>
|
<h5>
|
||||||
|
@ -331,7 +331,7 @@ var Hoc = React.createClass({
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="studio">
|
<div className="studio">
|
||||||
<img src="/svgs/studio.svg" />
|
<img src="/svgs/studio.svg" alt="" />
|
||||||
<div className="studio-info">
|
<div className="studio-info">
|
||||||
<a href="/studios/1065372/">
|
<a href="/studios/1065372/">
|
||||||
<h5>
|
<h5>
|
||||||
|
@ -344,7 +344,7 @@ var Hoc = React.createClass({
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="studio">
|
<div className="studio">
|
||||||
<img src="/svgs/studio.svg" />
|
<img src="/svgs/studio.svg" alt="" />
|
||||||
<div className="studio-info">
|
<div className="studio-info">
|
||||||
<a href="/studios/1672164/">
|
<a href="/studios/1672164/">
|
||||||
<h5>
|
<h5>
|
||||||
|
@ -366,22 +366,22 @@ var Hoc = React.createClass({
|
||||||
</h3>
|
</h3>
|
||||||
<div className="logos">
|
<div className="logos">
|
||||||
<a href="http://scratched.gse.harvard.edu/">
|
<a href="http://scratched.gse.harvard.edu/">
|
||||||
<img src="/images/hoc2015/scratchEd-logo.png" />
|
<img src="/images/hoc2015/scratchEd-logo.png" alt="ScratchEd" />
|
||||||
</a>
|
</a>
|
||||||
<a href="https://code.org/">
|
<a href="https://code.org/">
|
||||||
<img src="/images/hoc2015/code-org-logo.png" />
|
<img src="/images/hoc2015/code-org-logo.png" alt="code.org" />
|
||||||
</a>
|
</a>
|
||||||
<a href="http://www.cartoonnetwork.com/">
|
<a href="http://www.cartoonnetwork.com/">
|
||||||
<img src="/images/hoc2015/cn-logo.png" />
|
<img src="/images/hoc2015/cn-logo.png" alt="Cartoon Network" />
|
||||||
</a>
|
</a>
|
||||||
<a href="http://www.madewithcode.com/">
|
<a href="http://www.madewithcode.com/">
|
||||||
<img src="/images/hoc2015/made-with-code-logo.png" />
|
<img src="/images/hoc2015/made-with-code-logo.png" alt="Made with Code" />
|
||||||
</a>
|
</a>
|
||||||
<a href="http://www.paalive.org/">
|
<a href="http://www.paalive.org/">
|
||||||
<img src="/images/hoc2015/paa-logo.png" />
|
<img src="/images/hoc2015/paa-logo.png" alt="Progressive Arts Alliance" />
|
||||||
</a>
|
</a>
|
||||||
<a href="http://www.catrobat.org/">
|
<a href="http://www.catrobat.org/">
|
||||||
<img src="/images/hoc2015/pocketcode-logo.png" />
|
<img src="/images/hoc2015/pocketcode-logo.png" alt="Pocket Code" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue