Skip to content

Name the project trust dialog by its heading - #19256

Merged
gtritchie merged 4 commits into
mainfrom
bugfix/19252-trust-dialog-name
Oct 24, 2026
Merged

gtritchie merged 4 commits into
mainfrom
bugfix/19252-trust-dialog-name

Conversation

@gtritchie

Copy link
Copy Markdown
Member

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 to aria-describedby, so the explanation paragraph wasn't exposed at all.

The title is now an <h2> that labels the dialog through aria-labelledby, and the explanation paragraph is its description. This applies to both states, "Do you trust this project?" and "This project is restricted". ModalDialogBase gains setARIALabelledBy(Element), alongside setARIADescribedBy, for dialogs that show their own title.

Fixes #19252.

Testing

project_trust_dialog.test.ts now 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).

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.
@gtritchie gtritchie added this to the 2026.11 (Montauk Daisy) milestone Oct 23, 2026
@gtritchie gtritchie self-assigned this Oct 23, 2026
@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

RStudio E2E - all platforms

3 test(s) failed

###################- 99% pass rate

Passed Failed Skipped Flaky
4211 3 307 1
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ auth-teardown 2 0 14 0
❌ desktop-linux 1049 1 70 0
❌ desktop-macos 1055 1 65 0
❌ desktop-windows 1047 1 77 1
✅ server-linux 1022 0 53 0
✅ setup 36 0 28 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 e23ad644c0525bda7abb5f540ebf2b980a932a26 - Run #1684

@gtritchie
gtritchie merged commit 2988ceb into main Oct 24, 2026
1 of 5 checks passed
@gtritchie
gtritchie deleted the bugfix/19252-trust-dialog-name branch October 24, 2026 19:02
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.

Project trust dialog has no accessible name

1 participant