Repository navigation
Give each image button row its own alt text - #19472
Merged
Merged
Conversation
ImageResource2x.getSafeHtml cached the first call's markup, so every row of an ImageButtonColumn reused the first row's alt text. Addresses #19332
RStudio E2E - all platformsAll tests passed!
View / download the full reportView report online -- opens in the browser, no download needed. Available for 14 days. Download playwright-report.zip -- extract and open
All platforms - commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ImageResource2x.getSafeHtml(altText)cached the markup from its first call and returned it for every later call, ignoring the alt text passed in.ImageButtonColumnshares oneImageResource2xacross all rows of a column, so in the Packages pane every row's Help and Browse image got the first row's alt text.getSafeHtmlnow builds the<img>markup on each call.ImageButtonCell.renderlooks 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.