Skip to content

Accessibility problems in the Packages pane #19859

Todo

Description

@gtritchie

The Packages pane's package list has keyboard, screen reader, and target size problems. Measured on RStudio Server (Chrome), default layout, with about 230 packages installed.

Row action icons (Website, Browse, Remove)

Each row ends with up to three icons: the package's website, its repository page (Browse), and Remove. Each is an 11×11 <img> inside an 11×14 <span style="cursor: pointer">, rendered by ImageButtonColumn:

<span title="Remove askpass" style="cursor: pointer;"><img src="…" alt="Remove askpass"></span>
  • Keyboard: they can't be reached. Neither the span nor the image has a tabindex, and the table's keyboard selection is disabled (KeyboardSelectionPolicy.DISABLED). The only focusable element in the list is the current row's checkbox, and Tab from it leaves the pane. ImageButtonCell handles KEYDOWN, but nothing in the cell can receive it.
  • Screen readers: neither element has a button or link role, so each is announced as an image named by its alt ("Open askpass website", "Browse askpass", "Remove askpass"), not as a control that can be activated.
  • Target size: the icons sit in 20px columns, so their centers are 20px (Website to Browse) and 17px (Browse to Remove) apart, and rows are 19.5px apart. Their 24px circles overlap their neighbors', so they fail WCAG 2.2 2.5.8 Target Size (Minimum). axe-core doesn't report them, because it only measures focusable elements and widgets.

Package name

Clicking a package's name opens its help, but the name is a <div> with no role or tabindex, so it has the same keyboard and screen reader problems as the icons.

Row checkboxes (load/unload)

Each checkbox is 13×13, and rows are 19.5px tall, so neighboring checkboxes are 19.5px apart and their 24px circles overlap. axe-core 4.13's target-size rule reports every visible checkbox as Needs Review rather than a violation, because all but the current row's checkbox have tabindex="-1":

Target Size Safe space axe result
Row checkbox (load/unload package) 13×13 15px Needs Review

Element with negative tabindex has insufficient size (13px by 13px, should be at least 24px by 24px). Is this a target?
Target has insufficient space to its closest neighbors. Safe clickable space has a diameter of 15px instead of at least 24px.

As in the Files list (#19822) and Git changelist (#19840), enlarging each checkbox's hit area alone wouldn't be enough; rows need to be at least 24px tall so neighboring targets are 24px apart. The same applies to the icons.

Steps to reproduce

  • Keyboard: click a row's checkbox, then press Tab. Focus leaves the Packages pane without reaching the row's name or icons.

  • Target size: inject axe-core and run the rule (it's disabled by default):

    axe.run(document, {
      runOnly: { type: 'rule', values: ['target-size'] },
      rules: { 'target-size': { enabled: true } }
    })

The checkbox findings were split out of #19786.

Activity

  1. changed the title [-]Packages pane checkboxes are smaller than the WCAG 2.2 minimum target size and too closely spaced[/-] [+]Accessibility problems in the Packages pane[/+] on Dec 1, 2026
  2. self-assigned this
    on Dec 1, 2026
  3. added theissue type on Dec 1, 2026
  4. added this to the 2027.01 milestone on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions