Skip to content

Commit

Permalink
status: use status role and aria-live off
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Apr 9, 2020
1 parent 85f3f46 commit d04356f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/vs/workbench/browser/workbench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ export class Workbench extends Layout {
{ id: Parts.SIDEBAR_PART, role: 'complementary', classes: ['sidebar', this.state.sideBar.position === Position.LEFT ? 'left' : 'right'] },
{ id: Parts.EDITOR_PART, role: 'main', classes: ['editor'], options: { restorePreviousState: this.state.editor.restoreEditors } },
{ id: Parts.PANEL_PART, role: 'complementary', classes: ['panel', positionToString(this.state.panel.position)] },
{ id: Parts.STATUSBAR_PART, role: 'complementary', classes: ['statusbar'] }
{ id: Parts.STATUSBAR_PART, role: 'status', classes: ['statusbar'] }
].forEach(({ id, role, classes, options }) => {
const partContainer = this.createPart(id, role, classes);

Expand All @@ -369,6 +369,9 @@ export class Workbench extends Layout {
addClasses(part, 'part', ...classes);
part.id = id;
part.setAttribute('role', role);
if (role === 'status') {
part.setAttribute('aria-live', 'off');
}

return part;
}
Expand Down

0 comments on commit d04356f

Please sign in to comment.