Skip to content

Redundant aria-labelledby #327

@andrewcroce

Description

@andrewcroce

After doing a bit more research about this, it seems the regular html <label> is sufficient for an accessible label. Adding this aria attribute might be more confusing than helpful.

Maybe this is already possible, but the only time you'd want it is if the normal label is not used. One should be able to manually add aria-label or aria-labelledby if they don't use the normal label.

https://github.com/promptworks/inputs/blob/4dca17868278b8fd7de1773930754c7239ccc1f2/src/useFieldProps.ts#L69

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions