Skip to content

Project trust dialog has no accessible name #19252

Closed

Description

@gtritchie

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions