Merge pull request #15760 from xnt/fix/main-landmark

fix(accessibility): Add main and complementary landmarks
This commit is contained in:
Berkeley Martinez
2017-09-01 18:31:23 -07:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@ -118,7 +118,10 @@ export class Editor extends PureComponent {
mode mode
} = this.props; } = this.props;
return ( return (
<div className={ `${ns}-editor` }> <div
className={ `${ns}-editor` }
role='main'
>
<NoSSR onSSR={ <CodeMirrorSkeleton content={ content } /> }> <NoSSR onSSR={ <CodeMirrorSkeleton content={ content } /> }>
<Codemirror <Codemirror
onChange={ classicEditorUpdated } onChange={ classicEditorUpdated }

View File

@ -128,6 +128,7 @@ export class SidePanel extends PureComponent {
<div <div
className={ `${ns}-instructions-panel` } className={ `${ns}-instructions-panel` }
ref='panel' ref='panel'
role='complementary'
> >
<div> <div>
<ChallengeTitle> <ChallengeTitle>