Skip to content

Let attachments provide an accessibility label - #91

Open
freak4pc wants to merge 1 commit into
gonzalezreal:mainfrom
freak4pc:attachment-accessibility-label
Open

freak4pc wants to merge 1 commit into
gonzalezreal:mainfrom
freak4pc:attachment-accessibility-label

Conversation

@freak4pc

@freak4pc freak4pc commented Oct 15, 2026 •

Copy link
Copy Markdown

Another follow-up PR here :) We noticed there isn't a way to provide an accessibility label to attachments.

This adds an optional accessibilityLabel to Attachment, nil by default to allow doing that.

y-a-v-a pushed a commit to y-a-v-a/textual that referenced this pull request Oct 22, 2026
(cherry picked from commit b53334d, gonzalezreal#91)

Adapted to the fork: the label is only built when an attachment provides
one, since TextBuilder runs for every fragment on every content change, and
the label is combined with the fragment marker the fork always applies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y7W6e4M3bCGaGpJzVY8c39
y-a-v-a added a commit to y-a-v-a/textual that referenced this pull request Oct 22, 2026
Upstream main has had no new commits since 0.5.0 (2026-06-15), which the fork
already contains. The activity since then is in open pull requests; the fixes
among them are merged here, cherry-picked with their authorship and adapted
where they overlap with the fork:

- gonzalezreal#67, gonzalezreal#70, gonzalezreal#71, gonzalezreal#80: selection faults and crashes
- gonzalezreal#92: TextBuilder stack overflow on iOS
- gonzalezreal#83: caller attributes kept on code blocks
- gonzalezreal#86: stale content after markup changes, keeping
  loaded attachments while streamed content resolves
- gonzalezreal#91: attachment accessibility labels
- gonzalezreal#84, gonzalezreal#90: content on the first layout pass, so List
  rows keep their height and ImageRenderer draws text

Also fixes a fork bug the gonzalezreal#80 tests exposed (the selection model ignored a
change to an empty layout collection) and two timing-dependent tests.

Feature pull requests (gonzalezreal#69, gonzalezreal#78, gonzalezreal#79, gonzalezreal#81, gonzalezreal#82, gonzalezreal#88) are left out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y7W6e4M3bCGaGpJzVY8c39
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.

1 participant