Skip to content

fix(a11y): use empty alt on decorative SDK logo image#3424

Merged
bilal-karim merged 1 commit into
mainfrom
a11y/sdk-logo-alt-hygiene
May 22, 2026
Merged

fix(a11y): use empty alt on decorative SDK logo image#3424
bilal-karim merged 1 commit into
mainfrom
a11y/sdk-logo-alt-hygiene

Conversation

@bilal-karim
Copy link
Copy Markdown
Member

@bilal-karim bilal-karim commented May 21, 2026

Summary

  • Changes alt="SDK Icon" to alt="" on the decorative SDK logo <img> in sdk-logo.svelte
  • The image sits inside aria-hidden="true" so the alt text is already excluded from the accessibility tree, but alt="SDK Icon" is misleading and could become a real WCAG 1.1.1 defect if the wrapper is ever refactored
  • The sibling text node ({sdk} {version}) already provides the SDK identity to screen readers

Test plan

  • Open a workflow detail page showing the SDK badge (any running workflow)
  • Confirm the SDK logo image renders identically (no visual change)
  • With VoiceOver/NVDA: confirm the SDK identity is announced once from the text node, not from the image alt

🤖 Generated with Claude Code

The SDK logo `<img>` inside `aria-hidden="true"` had `alt="SDK Icon"` which
is misleading if the wrapper is ever removed. Empty alt correctly marks it
as decorative. The sibling text node already provides the SDK identity.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bilal-karim bilal-karim requested a review from a team as a code owner May 21, 2026 19:49
@vercel
Copy link
Copy Markdown

vercel Bot commented May 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
holocene Ready Ready Preview, Comment May 21, 2026 7:50pm

Request Review

@bilal-karim bilal-karim marked this pull request as draft May 21, 2026 19:50
@bilal-karim bilal-karim marked this pull request as ready for review May 21, 2026 20:30
@bilal-karim bilal-karim requested a review from Alex-Tideman May 21, 2026 22:13
@bilal-karim bilal-karim changed the title fix: use empty alt on decorative SDK logo image fix(a11y): use empty alt on decorative SDK logo image May 22, 2026
@bilal-karim bilal-karim merged commit 057ff32 into main May 22, 2026
20 checks passed
@bilal-karim bilal-karim deleted the a11y/sdk-logo-alt-hygiene branch May 22, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants