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
} = this.props;
return (
<div className={ `${ns}-editor` }>
<div
className={ `${ns}-editor` }
role='main'
>
<NoSSR onSSR={ <CodeMirrorSkeleton content={ content } /> }>
<Codemirror
onChange={ classicEditorUpdated }

View File

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