Skip to content

Commit fa8d0f1

Browse files
sandy081Copilot
andcommitted
sessions: clarify responsive diff accessibility
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 68fa802 commit fa8d0f1

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/vs/sessions/contrib/changes/browser/changesViewActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ MenuRegistry.appendMenuItem(Menus.SessionsEditorHeaderSecondary, {
333333
command: {
334334
id: TOGGLE_DIFF_SIDE_BY_SIDE,
335335
title: localize('preferSideBySideDiff', "Prefer Side by Side Diff"),
336-
tooltip: localize('preferSideBySideDiff.tooltip', "Uses side-by-side layout when space allows."),
336+
tooltip: localize('preferSideBySideDiff.tooltip', "Uses inline layout when space is limited unless screen reader optimized mode is enabled."),
337337
icon: Codicon.diffSidebyside,
338338
toggled: {
339339
condition: ContextKeyExpr.or(

src/vs/sessions/contrib/changes/browser/sessionsChangesAccessibilityHelp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class SessionsChangesAccessibilityHelp implements IAccessibleViewImplemen
3535
content.push(localize('sessionsChanges.checks', "The Checks section lists the continuous integration checks for the session's pull request. Its header is a button: press Enter or Space to collapse or expand it{0}.", '<keybinding:sessions.action.revealCIChecks>'));
3636
content.push(localize('sessionsChanges.viewMode', "The Changes view can show files as a tree or a flat list. Use the view's toolbar actions to switch between Tree and List modes."));
3737
content.push(localize('sessionsChanges.operations', "When available, the toolbar also provides actions to commit, merge, sync, or create a pull request. Use Tab and Shift+Tab to move between the file list and toolbar actions."));
38-
content.push(localize('sessionsChanges.diffView', "File diffs can prefer side-by-side or inline layout. Side-by-side diffs automatically use inline layout when space is limited. Use the Toggle Preferred Diff View command to switch the preference{0}.", '<keybinding:toggle.diff.renderSideBySide>'));
38+
content.push(localize('sessionsChanges.diffView', "File diffs can prefer side-by-side or inline layout. Unless screen reader optimized mode is enabled, side-by-side diffs automatically use inline layout when space is limited. Use the Toggle Preferred Diff View command to switch the preference{0}.", '<keybinding:toggle.diff.renderSideBySide>'));
3939

4040
return new AccessibleContentProvider(
4141
AccessibleViewProviderId.SessionsChanges,

src/vs/sessions/contrib/changes/test/browser/changesViewActions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ suite('Changes View Actions', () => {
194194
group: '1_diff',
195195
order: 20,
196196
icon: Codicon.diffSidebyside.id,
197-
tooltip: 'Uses side-by-side layout when space allows.',
197+
tooltip: 'Uses inline layout when space is limited unless screen reader optimized mode is enabled.',
198198
toggledTitle: 'Prefer Inline Diff',
199199
toggledTooltip: 'Always uses inline layout.',
200200
toggledOnSharedPreference: true,

0 commit comments

Comments
 (0)