You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename ref_id to form_dom_id to indicate that this is an identifier in the DOM
All labels, descriptions and error messages accompanying a field should have id tags in the form {{ form_dom_id }}-label, -description, -error-0, etc. Since there could be multiple errors, they need to be indexed.
The fields themselves need two additional ARIA tags:
aria-describedby which has all of the above ids, separated by spaces
aria-invalid, whose value is {% if field.errors %}true{% else %}false{% endif %}
The text was updated successfully, but these errors were encountered:
Forms need
aria
labels for accessibility:ref_id
toform_dom_id
to indicate that this is an identifier in the DOMid
tags in the form{{ form_dom_id }}-label
,-description
,-error-0
, etc. Since there could be multiple errors, they need to be indexed.aria-describedby
which has all of the above ids, separated by spacesaria-invalid
, whose value is{% if field.errors %}true{% else %}false{% endif %}
The text was updated successfully, but these errors were encountered: