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

The accessibility attribute aria-invalid has an error message instead of a "true" value #4003

Open
tombac2010 opened this issue Oct 28, 2024 · 3 comments

Comments

@tombac2010
Copy link

tombac2010 commented Oct 28, 2024

Bug report

Current Behavior

This image illustrates the inconsistency of aria-invalid in this code component:
<Field id='xyz' name='xyz' validate={validators.validateEmail(values)} component={TextField} label='Email' fullWidth required />

image

Expected behavior

When a field has an error, we need to have aria-invalid="true"
image

Your environment

Software Version(s)
Formik 2.4.6
React 16.13.1
TypeScript 4.8.4
Browser Chrome
npm/Yarn 10.8.1
Operating System Windows 11
@malcyb123
Copy link

Hi, I would like to work on this issue! Could you please assign it to me?

@tombac2010
Copy link
Author

Hello @malcyb123 ,
Since I’m not yet a contributor :), I’m unable to assign this ticket to you.
I hope you’ll be able to resolve this issue.
Thank you in advance,
D.

@bilalk711
Copy link

Hi @tombac2010 ,
Can you please provide a Code Sandbox link?

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