Skip to content

Main toolbar separator image has no alt attribute #19141

Closed

Description

@gtritchie

axe reports image-alt (WCAG 1.1.1, Level A, critical) on the main window in its initial state: one <img> with no alt attribute. The image is the 2x20 toolbar separator (ThemeResources.toolbarSeparator(), inlined as a data:image/png URI).

The likely source is the separator after the Assistant toggle button in the main toolbar (GlobalToolbar.java), which is built with Toolbar.getSeparator(). That method returns a plain Image, while the other toolbar separators use ToolbarSeparator, a DecorativeImage that marks itself decorative for assistive technology.

InlineToolbarSeparator also wraps the separator in a plain Image, but nothing references that class.

Reproduce: PW_A11Y=1 npx playwright test tests/a11y/initial-state.test.ts --project=server from e2e/rstudio.

Metadata

Metadata

Assignees

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions