You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Project trust dialog has no accessible name #19252
TrustRequestDialog has no accessible name. axe reports "ARIA dialog and alertdialog nodes should have an accessible name" (aria-dialog-name).
This affects both states of the dialog:
"Do you trust this project?", shown when opening a project with startup files that hasn't been trusted yet
"This project is restricted", shown when opening a project previously marked as untrusted, or from the toolbar's restricted-mode lock icon
ModalDialogBase names a dialog through setText(), which sets aria-label (ModalDialogBase.java#L793). TrustRequestDialog never calls it. It renders its own header and passes that to setARIADescribedBy() (TrustRequestDialog.java#L250), so the title is exposed as the dialog's description and the description paragraph isn't linked at all. The header is also a styled div rather than a heading.
A fix would point aria-labelledby at the header and aria-describedby at the description paragraph.
ViewFileDialog, opened from the dialog's file links, sets a caption and isn't affected. There are no other trust dialogs; the untrusted-project message for the visual editor is a warning bar.
Activity
Name the project trust dialog by its heading (#19256)