Skip to content

Bug - FormSelect - Accessibility warning doesn't check aria-labelledby #12119

Description

@Venefilyn

Describe the problem
When using FormSelect with a prop aria-labelledby that points to another label it will complain that the component requires either an ID or aria-label to be specified. Specifically:

FormSelect requires either an id or aria-label to be specified

How do you reproduce the problem?

  1. Go to https://codesandbox.io/p/sandbox/zk38dy
  2. Open console
  3. See FormSelect requires either an id or aria-label to be specified

Expected behavior
FormSelect also checks aria-labelledby before showing the warning.

Is this issue blocking you?
No


Jira Issue: PF-2918

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions