Skip to content

Plot image in the Plots pane has no alt text #19337

Closed

Description

@gtritchie

The plot image shown in the Plots pane has no `alt` attribute, so screen readers announce it as an unlabeled image (or skip it), and users get no indication of which plot is displayed.

Plots can be arbitrary, so a full description isn't feasible in general, but the image should at least carry a text alternative that identifies it (WCAG 2.2 SC 1.1.1, Non-text Content).

Steps to reproduce

  1. Run `hist(mtcars$mpg)` in the console.
  2. Inspect the plot image in the Plots pane, or navigate to it with a screen reader.

Expected

The image has a meaningful text alternative.

Actual

The `` has no `alt` attribute.

Metadata

Metadata

Assignees

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions