提交 3d404745 编写于 作者: I isidor

set role: 'code' on the monaco-editor

fixes #93438
上级 8ac4c265
......@@ -136,6 +136,8 @@ export class View extends ViewEventHandler {
this.domNode = createFastDomNode(document.createElement('div'));
this.domNode.setClassName(this.getEditorClassName());
// Set role 'code' for better screen reader support https://github.com/microsoft/vscode/issues/93438
this.domNode.setAttribute('role', 'code');
this.overflowGuardContainer = createFastDomNode(document.createElement('div'));
PartFingerprints.write(this.overflowGuardContainer, PartFingerprint.OverflowGuard);
......
......@@ -113,7 +113,6 @@ export class EditorControl extends Disposable {
const editorPaneContainer = document.createElement('div');
addClass(editorPaneContainer, 'editor-instance');
editorPaneContainer.setAttribute('data-editor-id', descriptor.getId());
editorPaneContainer.setAttribute('role', 'code');
editorPane.create(editorPaneContainer);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册