Skip to content

Conversation

@ckundo
Copy link
Member

@ckundo ckundo commented Nov 16, 2025

Fixes #49

Changes

  • ✅ Add role="img" to all chart bars
  • ✅ Add descriptive aria-label with build ID, duration, and status
  • ✅ Update title attribute to include status information
  • ✅ Add diagonal stripe pattern overlay to failed build bars
  • ✅ Pattern provides visual distinction beyond color
  • ✅ Screen readers announce complete information

WCAG Compliance

1.4.1 Use of Color (Level A) - Color must not be the only means of conveying information

Visual Enhancement

Failed builds now have a diagonal stripe pattern overlaid on the red bars, making them distinguishable from successful builds even in grayscale or for colorblind users.

Accessibility Improvements

  • Screen readers: Announce "build-1032: 8 minutes 22 seconds, Status: Failed"
  • Colorblind users: Can see stripe pattern on failed builds
  • Keyboard users: Can hover/focus bars and read full title text

Testing

  • Build succeeds
  • Chart bars have ARIA labels
  • Failed builds show stripe pattern
  • Pattern visible in grayscale
  • Screen reader announces complete information
  • Title tooltip shows status

- Add role="img" to all chart bars
- Add descriptive aria-label with build ID, duration, and status
- Update title attribute to include status information
- Add diagonal stripe pattern overlay to failed build bars
- Pattern provides visual distinction beyond color alone
- Screen readers now announce complete chart bar information

WCAG: 1.4.1 Use of Color (Level A)

Chart data is now accessible to both colorblind users (via pattern)
and screen reader users (via ARIA labels).
@ckundo ckundo added bug Something isn't working aria ARIA and semantic HTML issues labels Nov 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

aria ARIA and semantic HTML issues bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants