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

Insufficient Testing Task Input Validation #392

Open
jkva opened this issue Dec 13, 2021 · 1 comment
Open

Insufficient Testing Task Input Validation #392

jkva opened this issue Dec 13, 2021 · 1 comment

Comments

@jkva
Copy link
Contributor

jkva commented Dec 13, 2021

When clicking "Submit Results" at the end of a testing task, input is validated. In case of incorrect input, the following happens:

  1. User focus is moved to the first "incorrect" input; and
  2. "required" or "required: mark output" spans are placed within the input labels.

This is insufficient, given that:

  • In the case of text input fields (for AT output transcription) they are not marked as aria-required;
  • the "required" color contrast ratio is 3.7:1, below the required 4.5:1; and
  • there is no overview of input errors available to the user.

A screenshot showing "required" and "required: mark output" validation errors within input labels

Ideally:

  • user focus is moved to a section near the top of the test run;
  • this section has a heading "Please address these input validation errors" and a list of errors;
  • each item within this list is an in-page anchor which jumps to the offending input; and
  • if color is used to indicate error, its color contrast is 4.5:1 or higher.
@jscholes
Copy link
Contributor

@jkva I agree with this. I would place focus on the first in-page link within that list of messages.

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