Skip to content

Commit 8e42dc8

Browse files
committed
Fixes microsoft#29741: use signs for diff lines for Screen Readers
1 parent dc99c9a commit 8e42dc8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/vs/editor/browser/widget/diffReview.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -685,13 +685,13 @@ export class DiffReview extends Disposable {
685685
let ariaLabel: string;
686686
switch (type) {
687687
case DiffEntryType.Equal:
688-
ariaLabel = nls.localize('equalLine', "Unchanged original {0}, modified {1}: {2}", originalLine, modifiedLine, lineContent);
688+
ariaLabel = nls.localize('equalLine', "original {0}, modified {1}: {2}", originalLine, modifiedLine, lineContent);
689689
break;
690690
case DiffEntryType.Insert:
691-
ariaLabel = nls.localize('insertLine', "Inserted modified {0}: {1}", modifiedLine, lineContent);
691+
ariaLabel = nls.localize('insertLine', "+ modified {0}: {1}", modifiedLine, lineContent);
692692
break;
693693
case DiffEntryType.Delete:
694-
ariaLabel = nls.localize('deleteLine', "Deleted original {0}: {1}", originalLine, lineContent);
694+
ariaLabel = nls.localize('deleteLine', "- original {0}: {1}", originalLine, lineContent);
695695
break;
696696
}
697697
row.setAttribute('aria-label', ariaLabel);

0 commit comments

Comments
 (0)