Skip to content

Missing aria-required attribute #5006

@adamrparsons

Description

@adamrparsons

Hello, I'm currently implementing a form using React-Select and I've been told that the required attribute isn't coming through for screen-reader users. I've tried using MacOS's VoiceOver feature, and it seems that it reports it as "Combo box" along with the title, but doesn't mention required.

I saw that aria-required was listed in a large page of props here so I assumed it was part of the accepted props. Does React-Select support this attribute, or should I find another way to achieve this?

I've forked a codesandbox here, and as you can see when inspecting the dom, there are no aria-required attributes on any of the dom nodes

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/bug-unconfirmedIssues that describe a bug that hasn't been confirmed by a maintainer yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions