Repository navigation
Name the project trust dialog by its heading - #19256
Merged
Merged
Conversation
TrustRequestDialog renders its own title instead of a caption, so it had no accessible name, and it passed the title to aria-describedby, leaving the explanation paragraph unexposed. The title is now an h2 that labels the dialog (new ModalDialogBase.setARIALabelledBy), and the explanation describes it. Applies to both the "Do you trust this project?" and "This project is restricted" states. Addresses #19252.
RStudio E2E - all platforms3 test(s) failed
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.
The project trust dialog draws its own title instead of a caption, so it had no accessible name (axe
aria-dialog-name). The title was also wired toaria-describedby, so the explanation paragraph wasn't exposed at all.The title is now an
<h2>that labels the dialog througharia-labelledby, and the explanation paragraph is its description. This applies to both states, "Do you trust this project?" and "This project is restricted".ModalDialogBasegainssetARIALabelledBy(Element), alongsidesetARIADescribedBy, for dialogs that show their own title.Fixes #19252.
Testing
project_trust_dialog.test.tsnow checks, for both states, that the dialog has a heading with its title, that its accessible name is the title, and that its accessible description is the explanation. Without the fix, the first new assertion fails; with it, the suite passes (npm run test:server-dev, 13 passed).