提交 7279524b 编写于 作者: I isidor

Accessibility: Mark document-like outputs with role="document" for easier screen reader navigation.

fixes #93087
上级 9d4faead
......@@ -206,6 +206,7 @@ export class ExtensionEditor extends BaseEditor {
const root = append(parent, $('.extension-editor'));
root.tabIndex = 0; // this is required for the focus tracker on the editor
root.style.outline = 'none';
root.setAttribute('role', 'document');
const header = append(root, $('.header'));
const iconContainer = append(header, $('.icon-container'));
......
......@@ -8,7 +8,7 @@ import { localize } from 'vs/nls';
export default () => `
<div class="welcomePageContainer">
<div class="welcomePage">
<div class="welcomePage" role="document">
<div class="title">
<h1 class="caption">${escape(localize('welcomePage.vscode', "Visual Studio Code"))}</h1>
<p class="subtitle detail">${escape(localize({ key: 'welcomePage.editingEvolved', comment: ['Shown as subtitle on the Welcome page.'] }, "Editing evolved"))}</p>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册