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

fix: improve a11y-click-events-have-key-events message #9358

Merged
merged 7 commits into from
Oct 30, 2023

Conversation

benmccann
Copy link
Member

@benmccann benmccann commented Oct 27, 2023

fixes #8001
closes #8273

it's longer message, but at least it's useful now

@changeset-bot
Copy link

changeset-bot bot commented Oct 27, 2023

🦋 Changeset detected

Latest commit: 097255c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
svelte Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@brunnerh brunnerh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, for taking the initiative in trying to tackle this.
While this is better, it unfortunately still has issues:

  • The keyboard events will do nothing unless the element or one of the descendants is focused (by default, non-interactive elements will not be focusable)
  • The message does not explain that the keyboard handlers should enable the user to perform equivalent actions via the keyboard.

Because this is a lot, I was wondering whether delegating to the documentation for further explanation might be an option.

Speaking of which, the documentation at /docs/05-misc/02-accessibility-warnings.md should also be updated accordingly.

@benmccann
Copy link
Member Author

Thanks for the review! Updated as suggested!

@benmccann benmccann merged commit 8956125 into master Oct 30, 2023
7 checks passed
@benmccann benmccann deleted the a11y-click-warning branch October 30, 2023 16:43
@github-actions github-actions bot mentioned this pull request Oct 30, 2023
@github-actions github-actions bot mentioned this pull request Nov 10, 2023
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

Successfully merging this pull request may close these issues.

Aliases for certain type of key press events Improve click event handler accessibility warning
3 participants