Skip to content

Accessibility improvement #1110

@tommyka

Description

@tommyka

I have noticed that when using useDropzone the root element don't get any role or aria-label.

Because the root element gets to be focusable and essentially works as a button, it could be a good idea to use the role attribute to make screenreaders read it out as a button.

That together with a label prop in useDropzone that set a aria-label on the root element so it will be read out like a button action.

In short.
Add role=button and aria-label in root props

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions