Skip to content

image: add missing alt text in some cases#8158

Merged
mimecuvalo merged 2 commits intomainfrom
mime/img-alt
Mar 5, 2026
Merged

image: add missing alt text in some cases#8158
mimecuvalo merged 2 commits intomainfrom
mime/img-alt

Conversation

@mimecuvalo
Copy link
Copy Markdown
Member

@mimecuvalo mimecuvalo commented Mar 5, 2026

fix #8152

Change type

  • bugfix
  • improvement
  • feature
  • api
  • other

Release notes

  • image: add missing alt text in some cases

Note

Low Risk
Low risk: a small accessibility-focused change that only affects the alt attribute on rendered image elements and should not impact layout or asset loading behavior.

Overview
Ensures rendered image shapes consistently use shape.props.altText by setting it as the alt attribute on the already-loaded <img> (matching the behavior of the next/loading image). This fixes cases where images were rendered with an empty alt value despite the shape having alt text.

Written by Cursor Bugbot for commit e4388d5. This will update automatically on new commits. Configure here.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 5, 2026

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

Project Deployment Actions Updated (UTC)
examples Ready Ready Preview Mar 5, 2026 10:45am
5 Skipped Deployments
Project Deployment Actions Updated (UTC)
analytics Ignored Ignored Preview Mar 5, 2026 10:45am
chat-template Ignored Ignored Preview Mar 5, 2026 10:45am
tldraw-docs Ignored Ignored Preview Mar 5, 2026 10:45am
tldraw-shader Ignored Ignored Preview Mar 5, 2026 10:45am
workflow-template Ignored Ignored Preview Mar 5, 2026 10:45am

Request Review

@huppy-bot huppy-bot bot added the bugfix Bug fix label Mar 5, 2026
@mimecuvalo mimecuvalo enabled auto-merge March 5, 2026 10:38
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@mimecuvalo mimecuvalo disabled auto-merge March 5, 2026 10:42
@mimecuvalo mimecuvalo enabled auto-merge March 5, 2026 10:43
@mimecuvalo mimecuvalo added this pull request to the merge queue Mar 5, 2026
Merged via the queue into main with commit 997e1ac Mar 5, 2026
18 checks passed
@mimecuvalo mimecuvalo deleted the mime/img-alt branch March 5, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ImageShape: alt text is missing

1 participant