Skip to content

Command Palette: combobox suggestions are not announced #50846

Open
@afercia

Description

Description

The Command Center implements the combobox ARIA pattern, which is basically a search input combined with a list of suggestions. There are already a few combobox implementations in the editor. This specific implementation uses the cmdk external package.

Unfortunately, right now the combobox provided by cmdk is not accessible. It misses the aria-activedescendant property. This change upstream pacocoursey/cmdk#108 should fix it but it hasn't been released yet. Hopefully, it will be released before the next WordPress release so that there will be a chance to update the package. However, the current cmdk version 0.2.0 is not accessible. As such, the Command Center isn't accessible right now and I'm a bit surprised cmdk has been picked up with no prior accessibility evaluation.

There are a few more a11y issues in the Command Center implementation but it's a bit pointless running a full audit if aria-activedescendant doesn't get fixed first.

Step-by-step reproduction instructions

  • Use Safari + VoiceOver.
  • Go to the Site Editor.
  • Open the Command Center.
  • Search for some term to get a list of suggestions.
  • Use the Down and Up arrow keys to go through the list of suggestions.
  • Observe that VoiceOver doesn't announce the suggestions.

Note: I haven't tested on Windows. Worth noting that for some screen readers the aria-selected=true property set on the highlighted suggestion may be enough to make the announcement work as expected, but for a full support the missing aria-activedescrendant property is required.

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Activity

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

Metadata

Assignees

Labels

[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Package] Commands/packages/commands[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions