提交 1a3d767b 编写于 作者: I isidor

tune status bar accessibility

fixes #96210
上级 0204c009
......@@ -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)
......
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册