Skip to content
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

"A11y: <div> with click handler must have an ARIA role" is problematic. #8862

Closed
wrightwriter opened this issue Jun 27, 2023 · 1 comment
Closed

Comments

@wrightwriter
Copy link

Describe the bug

After updating to 4 today, I started getting this warning.
It is either not listed in https://svelte.dev/docs/accessibility-warnings or it doesn't work. I tried every single ARIA related warning from that page:

					<!-- svelte-ignore a11y-missing-attribute -->
					<!-- svelte-ignore a11y-click-events-have-key-events -->
					<!-- svelte-ignore a11y-aria-attributes --> 
					<!-- svelte-ignore a11y-aria-activedescendant-has-tabindex --> 
					<!-- svelte-ignore a11y-incorrect-aria-attribute-type --> 
					<!-- svelte-ignore a11y-misplaced-role --> 
					<!-- svelte-ignore a11y-no-redundant-roles --> 
					<!-- svelte-ignore a11y-no-interactive-element-to-noninteractive-role --> 
					<!-- svelte-ignore a11y-no-noninteractive-element-interactions --> 
					<!-- svelte-ignore a11y-no-noninteractive-element-to-interactive-role --> 
					<!-- svelte-ignore a11y-role-supports-aria-props --> 
					<!-- svelte-ignore a11y-unknown-role --> 
					<!-- svelte-ignore a11y-role-has-required-aria-props --> 

Reproduction

Create a div with a click handler without an aria role.

Logs

No response

System Info

Binaries:
    Node: 18.16.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.17 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.19.2 - C:\Program Files\nodejs\npm.CMD
  npmPackages:
    svelte: ^4.0.0 => 4.0.0
    webpack: ^5.88.0 => 5.88.0

Severity

annoyance

@JoshQuaintance
Copy link

try a11y-no-static-element-interactions, see if that'll work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants