thecodejack / svelte-file-dropzone

Svelte component for fileupload
https://svelte-file-dropzone.netlify.app/
252 stars 45 forks source link

Add role to kill a11y warning #126

Closed arackaf closed 9 months ago

arackaf commented 1 year ago

Hi! Love the library.

It looks like the tabIndex="0" on the div in your DropZone component causes an a11y warning when used in SvelteKit (I'm importing the Dropzone component directly, uncompiled).

This PR fixes by adding role="button" which fits since this kind of is like a button, since it can be clicked to open the file chooser.

mrexodia commented 1 year ago

Would be nice if this could be merged, but it looks like some netlify config is outdated blocking this...