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
Pane minimize, maximize, and restore buttons are smaller than the WCAG 2.2 minimum target size #19782
An Axe DevTools WCAG 2.2 AA scan flags the pane Minimize, Maximize, and Restore buttons (e.g. "Minimize TabSet1", "Maximize TabSet1", "Restore TabSet1") with "All touch targets must be 24px large, or leave sufficient space" (WCAG 2.5.8 Target Size (Minimum)):
Target has insufficient size (14px by 14px, should be at least 24px by 24px). Target has insufficient space to its closest neighbors. Safe clickable space has a diameter of 12px instead of at least 24px.
Steps to reproduce
Open RStudio with the default four-pane layout and minimize one pane.
Run an Axe DevTools WCAG 2.2 AA scan.
Cause
Measured in a browser on current main:
Pane state
Buttons
Size
Gap between buttons
Normal / maximized
Minimize, Maximize/Restore
14×14px
4px
Minimized
Restore, Maximize
16×24px, 20×24px
0px
Expanded pane (WindowFrame.java): the buttons are placed with setWidgetTopHeight/setWidgetRightWidth at 14×14px, 18px apart center to center. The optional close button uses the same layout.
Minimized pane (MinimizedWindowFrame.java, .rstheme_minimizedWindowObject .minimize/.maximize in themeStyles.css): the buttons are 24px tall but only 16px and 20px wide, and they touch each other.
Both layouts fail the minimum size and the spacing exception. The View > Panes > Zoom commands give a keyboard/menu equivalent for maximize, but nothing equivalent exists for minimize, so the "equivalent control" exception doesn't cover these buttons.
A fix probably means giving each button a 24×24px hit area (padding around the 14px icon), which needs room in the 26px title bar and moves the buttons further apart.
Activity
Enlarge pane frame buttons to 24px targets (#19787)