Skip to content

A11y: chosen-single link should have role="button" #52

Open
@juanolalla

Description

@juanolalla

Accessibility alerts about the following error: Anchor element found with link content, but no href, ID or name attribute has been supplied.

Steps to reproduce

Just configure chosen and inspect the code around the drop-down item. Everything is wrapped in the "chosen-single" class link with no href, id or name.

Expected behavior

The link <a class="chosen-single"> should be a button if it is an action. Converting it into a button would have a great impact on the library, so I suggest just to add role="button" as attribute to this link.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions