Skip to content

A11y: noninteractive element cannot have positive tabIndex value #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lapoguidi opened this issue Nov 2, 2022 · 2 comments
Closed

A11y: noninteractive element cannot have positive tabIndex value #115

lapoguidi opened this issue Nov 2, 2022 · 2 comments

Comments

@lapoguidi
Copy link

Hello,
thanks for your component.
I'm trying to use it in a my hobbist Sveltekit project and I receive the notification written in subject every time a page contains your component.
I know that's just a warning, but I simply report it to you.

This is the complete warning shown:

[vite-plugin-svelte] ./node_modules/.pnpm/[email protected]/node_modules/svelte-file-dropzone/src/components/Dropzone.svelte:310:0
A11y: noninteractive element cannot have positive tabIndex value

I tried changing index="0" with index="-1" at the row indicated and it seems to remove the warning and for the tests I done it doesn't impact on the functionalities, anyway I'm not an experienced programmer, and for sure I didn't tested all the methods of your component.

Thanks for your attention.
Have a nice day.

Sincerely,
Lapo

@codeho
Copy link

codeho commented Nov 15, 2022

yes, this will pop up as a warning. Also there is no reason to have a tabindex attribute there, as a dropzone is not applicaple to a screen-reader anyways.
It would be nice to be removed to clear the warnings.

@arackaf
Copy link
Collaborator

arackaf commented Jan 18, 2024

This should be fixed in 2.0.3

@arackaf arackaf closed this as completed Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants