Repository navigation
Description
The Git pane's list of changed files has several keyboard and screen reader problems. Checked on RStudio Server (Chrome, macOS) with the default light theme.
1. The list can't be reached with the keyboard
Tab goes from the Git toolbar straight to the next pane's Minimize button. The table has tabindex="-1", set for every MultiSelectCellTable in commonInit(). Show VCS Pane (Cmd/Ctrl+F1) selects the tab but doesn't move focus into the list. The only way in is to click a row (WCAG 2.1.1 Keyboard).
Once the list has focus, the keyboard works: Up/Down move the selection, Shift+Up/Down extend it, Cmd/Ctrl+A selects all, and Space or Enter stages or unstages the selection.
2. Selection changes aren't announced
Moving the selection with the arrow keys changes only a row's CSS class. Focus stays on the <table>, and the rows have no aria-selected. The table has no grid or listbox role and no aria-activedescendant, and there is no live region. With VoiceOver, arrowing through the list announces nothing (WCAG 4.1.2 Name, Role, Value).
3. Enter stages and then moves to the next row
With one row selected, Enter stages or unstages it and then selects the next row; Space does the same without moving. This has been deliberate since 2011 (be18b43, "Improvements to space, enter, and double-click in changelist table"), presumably so you can walk down the list staging files. It isn't documented anywhere in the UI, and it's unexpected next to Space. Not a WCAG failure in itself, but worth deciding on when the list gets proper keyboard support.
4. "Open at first change" is hard to reach without a mouse
Each row's arrow button is out of the Tab order (tabindex="-1"). Three keyboard routes exist, but none is usable on its own:
- Shift+Enter on the selected row opens it at its first change (
GitPresenter). Nothing in the UI mentions it; the button's tooltip is "Open the file at its first change". - The row's context menu has Open at First Change, but the menu opens only from a
contextmenumouse event. Shift+F10 opens nothing. - The Command Palette lists "VCS Open Selected File at First Change", which acts on the selected row.
All three need a selected row, which needs a mouse click first (item 1).
5. The go-to-change arrow has low contrast
The arrow is drawn at opacity: 0.7 (.rstudio-vcs-go-to-change in themeStyles.css; hover and focus raise it to 1). Measured from device-pixel screenshots, its darkest pixel against the row is:
| Row | Background | Contrast |
|---|---|---|
| Not selected | white | 1.8:1 |
| Selected | rgb(146, 193, 240) | 1.2:1 |
WCAG 1.4.11 Non-text Contrast requires 3:1 for graphics needed to identify a control. Dark themes weren't checked.
Related
MultiSelectCellTable is also used by the History window's commit list (CommitListTable) and the diff view (LineTableView), so items 1 and 2 may apply there too; not checked. The Review Changes window uses the same changelist.
Activity
gtritchie commentedon Nov 30, 2026
Related: the Review Changes window shows a focus outline when opened with the mouse
Opening the Review Changes window by clicking Diff or Commit in the Git pane's toolbar puts a focus outline around the window's list of changed files, even though the keyboard wasn't used. Releases back to at least 2025.05.1 behave the same.
Cause: when the window opens,
GitReviewPanel.onShowfocuses the list from a script (changelist_.focus()).SVNReviewPanel.onShowdoes the same. Chrome decides whether script-moved focus matches:focus-visiblefrom the last interaction in the same window. The click happened in the main window and the new window hasn't had any interaction yet, so the table matches.focus-visible.cssthen draws its 2px outline. With only one changed file, the outline is still there, but it nearly disappears against the selected row's blue.This isn't a WCAG violation, since focus really is on the list. It has also been this way for a long time, so it's probably not worth fixing. It's noted here in case the list's focus handling is reworked.
If it is fixed later: suppressing the outline means calling
focus({ focusVisible: false }), which Chrome honors. Keyboard users who open the window with Ctrl+Alt+M still benefit from the outline, though. So the main window would have to pass along whether the window was opened with the mouse or the keyboard (for example inVCSApplicationParams), andonShowwould suppress the outline only for the mouse.