Skip to content

Connectors page: Improve accessibility #75995

@t-hamano

Description

@t-hamano

I think the new Connectors page needs some improvement in terms of accessibility.

Image
  • The button text is the same for all connectors, which can be confusing for users who rely on screen readers. As with the theme and plugin install pages, I think explicit aria-labels are needed instead of visual text. For example:
    • Install: Install {connector_name}
    • Installing: Installing {connector_name}...
    • Set up: Set up {connector_name}
    • Cancel: Cancel {connector_name}
  • When an action is completed, no notification is sent to the screen reader. We must notify the user that the action is complete via wp.a11y.speak or a snackbar:
    • Install connector
    • Save a valid API key
    • Remove API key
  • The focus is lost in the following cases:
    • Install a connector
    • Save a valid API key
    • Remove API key
  • When the Set up button is triggered, focus should move to the text field, not the Cancel button.
  • If the Save button is pressed and the API key validation fails, the message It was not possible to connect to the provider using this key. will be displayed, but it will not be announced to the screen reader.

cc @joedolson

Metadata

Metadata

Labels

Connectors screenTracks connectors screen related tasks[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions