mirror of
https://github.com/Microsoft/vscode
synced 2024-07-07 19:50:26 +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)) {
|
||||
return element.label;
|
||||
} 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)) {
|
||||
return `${stripIcons(element.label).trim()}${element.description ? `, ${element.description}` : ''}`;
|
||||
} else if (isSCMHistoryItemChangeTreeElement(element)) {
|
||||
|
@ -1323,7 +1323,7 @@ export class SCMAccessibilityProvider implements IListAccessibilityProvider<Tree
|
|||
|
||||
return result.join(', ');
|
||||
} else if (isSCMViewSeparator(element)) {
|
||||
return element.label;
|
||||
return element.ariaLabel ?? element.label;
|
||||
} else {
|
||||
const result: string[] = [];
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user