Merge branch 'master' into editor-accessibility-unique-key-warning

This commit is contained in:
omnikrll 2016-08-24 16:43:12 -04:00
commit 006c78a362
2 changed files with 5 additions and 4 deletions

View File

@ -11,11 +11,12 @@ const exitUrl = require('../../../images/exit.svg');
class SketchList extends React.Component { class SketchList extends React.Component {
componentDidMount() { componentDidMount() {
this.props.getProjects(this.props.username); this.props.getProjects(this.props.username);
document.getElementById('sketchlist').focus();
} }
render() { render() {
return ( return (
<div className="sketch-list"> <section className="sketch-list" aria-label="project list" tabIndex="0" role="main" id="sketchlist">
<header className="sketch-list__header"> <header className="sketch-list__header">
<h2>Sketches</h2> <h2>Sketches</h2>
<button className="sketch-list__exit-button" onClick={this.props.closeSketchList}> <button className="sketch-list__exit-button" onClick={this.props.closeSketchList}>
@ -42,7 +43,7 @@ class SketchList extends React.Component {
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </section>
); );
} }
} }

View File

@ -17,14 +17,14 @@ class TextOutput extends React.Component {
</section> </section>
<p <p
tabIndex="0" tabIndex="0"
role="region" role="main"
id="textOutput-content-summary" id="textOutput-content-summary"
aria-label="text output summary" aria-label="text output summary"
> >
</p> </p>
<table <table
tabIndex="0" tabIndex="0"
role="region" role="main"
id="textOutput-content-details" id="textOutput-content-details"
aria-label="text output summary details" aria-label="text output summary details"
> >