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: visible, non-interactive elements with an on:click event must be accompanied by an on:keydown, on:keyup, or on:keypress event. #92

Open
5 of 6 tasks
dawidmachon opened this issue Nov 4, 2022 · 1 comment
Labels
Svelte Issue with Tailwind Mobile Svelte

Comments

@dawidmachon
Copy link

Check that this is really a bug

  • I confirm

Reproduction link

.

Bug description

On compilation, your components on Svelte receiving:
A11y: visible, non-interactive elements with an on:click event must be accompanied by an on:keydown, on:keyup, or on:keypress event.

It's because:
Changelog from Svelte, November 2022:

New accessibility warnings, a11y-click-events-have-key-events and a11y-no-noninteractive-tabindex, will now warn when your components lack required key events or tabindex. While a11y-role-has-required-aria-props will no longer warn when elements match their semantic role (3.51.0)

Expected Behavior

No response

Actual Behavior

No response

Konsta UI version

1.02

Platform/Target and Browser Versions

windows, chrome dev 108.0.5359.10 (official) (64-bit)

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Konsta UI issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@dawidmachon dawidmachon added the Svelte Issue with Tailwind Mobile Svelte label Nov 4, 2022
@giviz
Copy link

giviz commented Feb 17, 2023

I had that same issue with F7 and solved it by creating a .vscode folder with a settings.json file for :

{
  "svelte.plugin.svelte.compilerWarnings": {
    "a11y-click-events-have-key-events": "ignore"
  }
}

Just in case that might help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Svelte Issue with Tailwind Mobile Svelte
Projects
None yet
Development

No branches or pull requests

2 participants