Repository navigation
Todo
Description
The WCAG 2.5.8 Target Size (Minimum) work in #19786 makes toolbar rows, toolbar buttons, pane title bar buttons, and Files pane rows taller, so each is a 24px target. On a short display this costs some vertical space. This issue is to look into a user preference for a compact layout that restores the smaller sizes, for users who prefer density over WCAG 2.2 conformance.
What it would change
Sizes before and after the #19786 work (#19787, #19798, #19822, #19840, and the pane toolbar changes still in progress):
| Element | Conformant | Compact |
|---|---|---|
| Pane toolbar row | 25px | 22px |
| Toolbar buttons | 24px tall, at least 24px wide | 21px tall, as narrow as 14px |
| Files pane header row | 25px | 19px |
| Files pane rows | 24px | 22.5px |
| Files breadcrumb row | 24px links | 20px links |
| Git/SVN changelist header row | 25px (sort buttons 24px) | 16px (sort buttons 13px) |
| Git/SVN changelist rows | 24px | 18px |
In a four-pane layout with second-row toolbars, compact mode would recover roughly 10-15px of height per column.
Possible approach
- A boolean preference in
user-prefs-schema.json, off by default, applied as a body class at startup (asrstudio-themes-darkandwindowsare). - CSS overrides under that class for the toolbar wrapper, toolbar buttons, Files list, and changelist. The changelist (Git pane, Review Changes, SVN pane, SVN Commit dialog) is sized by
ChangelistTableCellTableStyle.cssalone, with no Java row height, so it needs only the CSS override. - The heights that Java reads when laying out panes would check the preference:
Toolbar.DEFAULT_HEIGHT, theWindowFrametitle bar button constants,FilesList.getRowHeight(),FilePathToolbar.getHeight(). - Requiring a reload when the preference changes keeps this simple. Switching live would mean re-laying out every pane.
Things to work out
- It is not a pure revert. Several controls had offsets tuned for the old row height, which were removed or replaced as the rows grew. Each needs a compact equivalent or it will sit a pixel or two off.
- Pane minimize/maximize buttons are 24px. Over a 22px toolbar row they would overlap the toolbar's top 2px and take its clicks, so they need to shrink in compact mode too.
- Every later toolbar or list layout change has to be checked in both modes, and automated target-size tests only apply to the conformant one. This ongoing cost is larger than the initial implementation.
- rstudio-pro toolbars need the same treatment.
- Which other elements belong in compact mode (other data grids, dialogs) is open.
- The preference's description should say that compact mode does not meet WCAG 2.2 target size.
When to decide
Worth waiting for user feedback on the conformant layout first; the per-pane cost is small, and two layouts double the manual test surface.
Activity
gtritchie commentedon Nov 30, 2026
Assigned to 2027.01 milestone. Not committed work yet, but will want to review at that time.