mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-07 09:35:41 -05:00
Merge from vscode 2e5312cd61ff99c570299ecc122c52584265eda2
This commit is contained in:
committed by
Anthony Dresser
parent
3603f55d97
commit
7f1d8fc32f
@@ -320,7 +320,6 @@ export class Workbench extends Layout {
|
||||
|
||||
// ARIA
|
||||
setARIAContainer(this.container);
|
||||
this.container.setAttribute('role', 'application');
|
||||
|
||||
// State specific classes
|
||||
const platformClass = isWindows ? 'windows' : isLinux ? 'linux' : 'mac';
|
||||
@@ -352,7 +351,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: 'contentinfo', classes: ['statusbar'] }
|
||||
{ id: Parts.STATUSBAR_PART, role: 'status', classes: ['statusbar'] }
|
||||
].forEach(({ id, role, classes, options }) => {
|
||||
const partContainer = this.createPart(id, role, classes);
|
||||
|
||||
@@ -371,6 +370,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user