fix(accessibility): Add main and complimentary landmarks
Screen readers and other assistive technologies use it for navigation Closes #15658
This commit is contained in:
@ -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 }
|
||||
|
@ -127,6 +127,7 @@ export class SidePanel extends PureComponent {
|
||||
<div
|
||||
className={ `${ns}-instructions-panel` }
|
||||
ref='panel'
|
||||
role='complementary'
|
||||
>
|
||||
<div>
|
||||
<ChallengeTitle>
|
||||
|
Reference in New Issue
Block a user