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

Question: Accessibility #148

Open
paallaire opened this issue Aug 18, 2024 · 0 comments
Open

Question: Accessibility #148

paallaire opened this issue Aug 18, 2024 · 0 comments

Comments

@paallaire
Copy link

hello,

How should accessibility be handled with JustValidate?

Example
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-invalid
aria-invalid="true"
From an accessibility standpoint, we must ensure anyone not only knows that the field is invalid but also what’s the error message. To mark a field as invalid, we use the ARIA attribute aria-invalid="true"

<input
  id="address"
  type="text"
  required="required"
  aria-invalid="true"
/>

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

1 participant