提交 54ca7ceb 编写于 作者: A Alex Ross

Accessibility: Custom tree should use tooltip as aria lable when it exists

Part of https://github.com/microsoft/vscode-remote-release/issues/1296
上级 11b23cab
......@@ -375,7 +375,7 @@ export class CustomTreeView extends Disposable implements ITreeView {
identityProvider: new CustomViewIdentityProvider(),
accessibilityProvider: {
getAriaLabel(element: ITreeItem): string {
return element.label ? element.label.label : '';
return element.tooltip ? element.tooltip : element.label ? element.label.label : '';
}
},
ariaLabel: this.title,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册