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
Enhance form functions for accessibility #6976
Comments
This you can already configure in the form's settings. Though why would you enable that for the purpose of accessibility? |
Browser validation is sufficient for WCAG 2.1 3.3.1 Error Identification
but does not provide enough information as requested in 3.3.3 Error Suggestion
|
Funfact: chromes validation accepts |
In what way does the browser validation not provide enough information? |
Because that is a valid email address... e.g. |
Yep - but contao wont't like it. |
@asaage pls discuss this in a separat issue, not here. |
Because "Feld ausfüllen" ist not sufficient help to correct errors, |
If you think this is not enough (I don't really see why that would be the case from your provided link) then this is something you should report to the respective Browser vendors. Generally I do not see how disabling browser validation increases accessibility as the browser can help the user better and more immediately (with enough information provided). In any case as per your original request and as already mentioned - this is something you can already do. |
Description
Contao already provides a very good base for accessible websites. To further enhance the possibilities, I would suggest these additions to the form module:
autocomplete
One criteria for accessible websites is the usage of "autocomplete" with input fields in forms.
It would be great help if the backend offers a select field for autocomplete for
<input>
,<select>
and<textarea>
. Possible options are listed at https://www.w3.org/TR/WCAG21/#input-purposes<form>
should get the choice of options autocomplete=on/offnovalidate
Furthermore,
<form>
should be able to get "novalidate" to prevent validation of the form input by browsers but leave the validation fully to the settings from Contao.aria in case of error
input fields should get a aria-describedby connected to the error message in case of an validation error.
Error messages should be marked with role="alert" and aria-live="assertive"
The text was updated successfully, but these errors were encountered: