patternfly / patternfly/patternfly-react

MenuToggle - add aria-invalid and aria-autocomplete

Open
#11,806 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A11y PF Team Stale
Dominant language
TypeScript
Stars
862
Forks
392
Avg merge
4d 8h
Merged PRs (30d)
9

Description

Describe the enhancement or change
Per https://github.com/patternfly/patternfly/issues/6562#issuecomment-2839684312:

  • MenuToggle should be updated to apply aria-invalid="true" when the status is danger for non-typeahead/plain toggles (basic toggles and split button toggles). If there are any typeahead examples showing status, those should be updated to apply the aria-invalid to the input element.

  • For typeahead variants, examples and templates should be updated so that aria-autocomplete="list" is applied to the text input being used as the typeahead input.

Is this request originating from a Red Hat product team? If so, which ones and is there any sort of deadline for this enhancement?

Any other information?


Jira Issue: PF-1732

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the MenuToggle component, its examples, and templates, focusing on basic, split-button, and typeahead variants. Update the relevant rendered elements so danger status exposes aria-invalid and typeahead inputs expose aria-autocomplete="list"; done means the examples and component behavior reflect these attributes.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
accessibility, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.