提交 31aba004 编写于 作者: R rebornix

Accessibility. Fix Microsoft/monaco-editor#506 , document role should have...

Accessibility. Fix Microsoft/monaco-editor#506 , document role should have title per w3c documentation.
上级 19e4249d
......@@ -299,6 +299,8 @@ class AccessibilityHelpWidget extends Widget implements IOverlayWidget {
text += '\n\n' + nls.localize("outroMsg", "You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape.");
this._contentDomNode.domNode.appendChild(renderFormattedText(text));
// Per https://www.w3.org/TR/wai-aria/roles#document, Authors SHOULD provide a title or label for documents
this._contentDomNode.domNode.setAttribute('aria-label', text);
}
public hide(): void {
......
......@@ -253,6 +253,8 @@ class AccessibilityHelpWidget extends Widget implements IOverlayWidget {
text += '\n\n' + nls.localize('outroMsg', "You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape.");
this._contentDomNode.domNode.appendChild(renderFormattedText(text));
// Per https://www.w3.org/TR/wai-aria/roles#document, Authors SHOULD provide a title or label for documents
this._contentDomNode.domNode.setAttribute('aria-label', text);
}
public hide(): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册