Skip to content

Commit

Permalink
tune status bar accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn authored and leilapearson committed Apr 27, 2020
1 parent bb229f1 commit 0e6f4de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/vs/workbench/browser/parts/editor/editorStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,6 @@ export class EditorStatus extends Disposable implements IWorkbenchContribution {
this.screenRedearModeElement.value = this.statusbarService.addEntry({
text,
ariaLabel: text,
tooltip: nls.localize('screenReaderDetectedExtra', "If you are not using a Screen Reader, please change the setting `editor.accessibilitySupport` to \"off\"."),
command: 'showEditorScreenReaderNotification',
backgroundColor: themeColorFromId(STATUS_BAR_PROMINENT_ITEM_BACKGROUND),
color: themeColorFromId(STATUS_BAR_PROMINENT_ITEM_FOREGROUND)
Expand Down
2 changes: 2 additions & 0 deletions src/vs/workbench/browser/parts/statusbar/statusbarPart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,8 @@ class StatusbarEntryItem extends Disposable {
}

if (!this.entry || entry.ariaLabel !== this.entry.ariaLabel) {
// Set the aria label on both elements so screen readers would read the correct thing without duplication #96210
this.container.setAttribute('aria-label', entry.ariaLabel);
this.labelContainer.setAttribute('aria-label', entry.ariaLabel);
}

Expand Down

0 comments on commit 0e6f4de

Please sign in to comment.