You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Console output region has no visible focus indicator #19812
The Console output region (#rstudio_console_output) can receive keyboard focus, either with Focus Console Output (Ctrl+Alt+2 on macOS, Alt+Shift+2 elsewhere, or Ctrl+`) or by tabbing to it. Nothing shows that it has focus, so keyboard users can't tell where focus went. This fails WCAG 2.4.7 Focus Visible (Level AA).
Steps to reproduce
Run a command in the Console so it has some output.
Press Ctrl+Alt+2 (macOS) / Alt+Shift+2 (Windows, Linux), or Tab from the Console toolbar until focus moves into the output.
No focus indicator appears around the output region.
Cause
consoleStyles.css turns off the :focus-visible outline for both the output <pre> (.output, tabindex=0) and its trailing output chunk (.outputChunk, tabindex=-1, the element focusEnd() focuses):
The rule came from #6518, where pressing Shift while text was selected in the output showed stray focus rectangles. That fix predates the switch to native :focus-visible (#15074), so a fix needs to show an indicator when focus arrives by keyboard without bringing back the rectangles from #6518.
Expected
A visible focus indicator on the Console output region whenever it has keyboard focus.
Activity
Clear console output mouse mark when focus lands elsewhere
Show a focus outline on Console output and fix Tab from it (#19818)
Fix Console output focus outline after mouse focus; focus a hidden Co…