mirror of
https://github.com/Microsoft/vscode
synced 2024-07-17 02:57:19 +00:00
SCM - fix aria label for incoming/outoing nodes (#199648)
SCM - update aria label for incoming/outgoing
This commit is contained in:
parent
15a7e46d25
commit
3cd0a63551
|
@ -1310,7 +1310,7 @@ export class SCMAccessibilityProvider implements IListAccessibilityProvider<Tree
|
||||||
} else if (isSCMResourceGroup(element)) {
|
} else if (isSCMResourceGroup(element)) {
|
||||||
return element.label;
|
return element.label;
|
||||||
} else if (isSCMHistoryItemGroupTreeElement(element)) {
|
} else if (isSCMHistoryItemGroupTreeElement(element)) {
|
||||||
return `${stripIcons(element.label).trim()}${element.description ? `, ${element.description}` : ''}`;
|
return element.ariaLabel ?? `${element.label.trim()}${element.description ? `, ${element.description}` : ''}`;
|
||||||
} else if (isSCMHistoryItemTreeElement(element)) {
|
} else if (isSCMHistoryItemTreeElement(element)) {
|
||||||
return `${stripIcons(element.label).trim()}${element.description ? `, ${element.description}` : ''}`;
|
return `${stripIcons(element.label).trim()}${element.description ? `, ${element.description}` : ''}`;
|
||||||
} else if (isSCMHistoryItemChangeTreeElement(element)) {
|
} else if (isSCMHistoryItemChangeTreeElement(element)) {
|
||||||
|
@ -1323,7 +1323,7 @@ export class SCMAccessibilityProvider implements IListAccessibilityProvider<Tree
|
||||||
|
|
||||||
return result.join(', ');
|
return result.join(', ');
|
||||||
} else if (isSCMViewSeparator(element)) {
|
} else if (isSCMViewSeparator(element)) {
|
||||||
return element.label;
|
return element.ariaLabel ?? element.label;
|
||||||
} else {
|
} else {
|
||||||
const result: string[] = [];
|
const result: string[] = [];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue