fix(accessibility): Add main and complimentary landmarks

Screen readers and other assistive technologies use it for navigation

Closes #15658
This commit is contained in:
Vicente Plata
2017-08-12 22:02:01 -07:00
parent 19e4c0fccd
commit d449c3cdd0
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

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