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

WCAG2 issue with Aria-describedby error message reference on valid values #1194

Open
HTIRC17 opened this issue Feb 28, 2023 · 0 comments
Open

Comments

@HTIRC17
Copy link

HTIRC17 commented Feb 28, 2023

Whether leaving a required field blank or entering a value on either input text or select (selecting non empty option) the aria-describedby changes to reference an error message element. While this is correct if the error message is displayed the field is set regardless of validity and references an error message that does not exist when it is valid.

When setting the aria-describedby attribute only valid and existing elements should be referenced.

Tested using silverstripe/userforms : 5.14.2, 5.14.1, 5.14.0

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

2 participants