Skip to content

Chat avatars lack appropriate role attributes #723

@Woebin

Description

@Woebin

Describe the bug
This is a violation of the Web Content Accessibility Guidelines (WCAG) SC 4.1.2 (A) Name, Role, Value.

For SVG images to work as expected, they need to have an appropriate role attribute value - either application, document, or image. The user avatars in the chat have no role` attribute at all.

Avatar images without role.

The avatars do have aria-label attributes, which may not be properly parsed by assistive technologies without an associated role.

Expected behavior
The avatars should have role="image" to go along with the aria-label.

Server:

  • Peertube version: 7.2.1
  • peertube-plugin-livechat version: 14.0.0

Desktop:

  • OS: MacOS 15.5
  • Browser: Google Chrome Version 137.0.7151.120 (Official Build) (arm64)

Additional context
This issue was recorded as part of an accessibility audit carried out by Axess Lab, contracted by HowlRound Theatre Commons.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions