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

Use describedby instead of errormessage aria attribute #74

Merged
merged 2 commits into from
Mar 7, 2023

Conversation

simonihmig
Copy link
Contributor

Fixes #47

@changeset-bot
Copy link

changeset-bot bot commented Mar 6, 2023

🦋 Changeset detected

Latest commit: eb52f07

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

This PR includes changesets to release 2 packages
Name Type
ember-headless-form Patch
docs-app 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

@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2023

Preview URLs

Env: preview
Docs: https://f3a07b44.ember-headless-form.pages.dev


Use describedby instead of errormessage ARIA attribute

Support for `aria-errormessage` is [very incomplete across screen readers](https://a11ysupport.io/tech/aria/aria-errormessage_attribute), therefore switching to the [better supported](https://a11ysupport.io/tech/aria/aria-describedby_attribute), but less specific `aria-describedby`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for this detailed explanation! Really helps a lot!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

credits belong to @ynotdraw, who found out about this in CrowdStrike/ember-toucan-core#27 (comment)

@simonihmig simonihmig merged commit 6188d2a into main Mar 7, 2023
@simonihmig simonihmig deleted the describedby branch March 7, 2023 08:14
@github-actions github-actions bot mentioned this pull request Mar 7, 2023
@github-actions github-actions bot mentioned this pull request Dec 18, 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.

Verify a11y of error messages
3 participants