Skip to content

Enlarge pane frame buttons to 24px targets - #19787

Merged
gtritchie merged 2 commits into
mainfrom
bugfix/19782-pane-button-target-size
Nov 22, 2026
Merged

gtritchie merged 2 commits into
mainfrom
bugfix/19782-pane-button-target-size

Conversation

@gtritchie

Copy link
Copy Markdown
Member

Addresses #19782.

Axe DevTools flags the pane Minimize, Maximize, Restore, and Close buttons under WCAG 2.5.8 Target Size (Minimum). Each button is now a 24×24px target with its 14px icon centered.

Pane state Before After
Open, maximized, or sidebar 14×14, 4px apart 24×24, adjacent
Minimized tabset 16×24 and 20×24, adjacent 24×24, adjacent
Minimized Source or Console 16×17 and 20×17, adjacent 24×24, adjacent
  • WindowFrame places its buttons in 24px slots from the right edge. Each icon's vertical center is unchanged. The leftmost button (Minimize, or Maximize on the sidebar) moves 6px left. The header's tab strip and the Console's context buttons now end 11px further from the edge, to keep clear of the larger buttons.
  • The Console-only frame (Console with no other tabs) positions its buttons with !important rules. Those rules are updated to the new slots.
  • On minimized panes, a negative top margin offsets the 3px padding of the Source and Console strips, so the strip doesn't clip the 24px buttons.

Testing

  • Measured in a browser (dev server): every button in all four layouts is 24×24 and fully inside its title bar or strip, and clicking each button's bottom edge hits that button.
  • npm run test:server-dev on tests/panes/layout/panes.test.ts, console_minimized_after_render.test.ts, focus_adjacent_pane.test.ts, and tests/panes/console/console_pane.test.ts: 89 passed, 3 skipped.

@github-actions

Copy link
Copy Markdown

RStudio E2E - all platforms

All tests passed!

#################### 100% pass rate

Passed Failed Skipped Flaky
5809 0 254 1
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ auth-teardown 4 0 16 0
✅ desktop-linux 1453 0 49 0
✅ desktop-macos 1459 0 43 1
✅ desktop-windows 1448 0 60 0
✅ server-linux 1397 0 54 0
✅ setup 48 0 32 0

View report online


All platforms - commit d1b9fedab0924eb9f0dcb8f4b0893eaf829e16ab - Run #2470

@gtritchie
gtritchie merged commit d49011d into main Nov 22, 2026
45 checks passed
@gtritchie
gtritchie deleted the bugfix/19782-pane-button-target-size branch November 22, 2026 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant