Skip to content

Give each image button row its own alt text - #19472

Merged
gtritchie merged 3 commits into
mainfrom
bugfix/image-button-alt-text-19332
Nov 6, 2026
Merged

gtritchie merged 3 commits into
mainfrom
bugfix/image-button-alt-text-19332

Conversation

@gtritchie

Copy link
Copy Markdown
Member

ImageResource2x.getSafeHtml(altText) cached the markup from its first call and returned it for every later call, ignoring the alt text passed in. ImageButtonColumn shares one ImageResource2x across all rows of a column, so in the Packages pane every row's Help and Browse image got the first row's alt text.

getSafeHtml now builds the <img> markup on each call. ImageButtonCell.render looks up the row's title once and uses it for both the image's alt text and the span's title.

A new GWT unit test, ImageButtonColumnTests, renders two rows through one column and checks that each row has its own alt text. It fails without the fix.

Follow-ups found during review: #19470 (Browse button shown with no label for packages without a browse URL) and #19471 (Help button's accessible name is the raw documentation URL).

Fixes #19332.

ImageResource2x.getSafeHtml cached the first call's markup, so every
row of an ImageButtonColumn reused the first row's alt text.

Addresses #19332
@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

RStudio E2E - all platforms

All tests passed!

#################### 100% pass rate

Passed Failed Skipped Flaky
5094 0 236 3
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ auth-teardown 4 0 16 0
✅ desktop-linux 1275 0 45 0
✅ desktop-macos 1278 0 40 3
✅ desktop-windows 1274 0 52 0
✅ server-linux 1215 0 51 0
✅ setup 48 0 32 0
View / download the full report

View report online -- opens in the browser, no download needed. Available for 14 days.

Download playwright-report.zip -- extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


All platforms - commit fc06e29a7c7933124eee70c91b44f3a895bc5609 - Run #2032

@gtritchie
gtritchie merged commit f2709c5 into main Nov 6, 2026
78 of 79 checks passed
@gtritchie
gtritchie deleted the bugfix/image-button-alt-text-19332 branch November 6, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ImageResource2x.getSafeHtml caches the first alt text, so image button columns repeat one row's alt text

1 participant