Make it easy to set autocomplete attributes on form inputs #1136
Labels
accessibility regulations failure
Does not meet the Public Sector Accessibility Regulations (WCAG 2.2 level AA)
accessibility
What
Make it possible to pass an
autocomplete
option to:When provided, the
autocomplete
option should be outputted as an attribute on the input. For example:would output:
Why
WCAG 2.1 introduces a new success criteria "1.3.5 Identify Input Purpose" which "is to ensure that the purpose of a form input collecting information about the user can be programmatically determined, so that user agents can extract and present this purpose to users using different modalities".
Broadly speaking, we can help service teams meet this criteria by making it easier to pass autocomplete attributes to components.
At the minute this can be done by using the
attributes
option, but making it part of the component API promotes the idea that this should be used when it makes sense to do so.Done when…
users can use the autocomplete option with the text input component
autocomplete
option to the componentautocomplete
option is documented in the component's YAML fileusers can use the autocomplete option with the textarea component
autocomplete
option to the componentautocomplete
option is documented in the component's YAML fileusers can use the autocomplete option with the date input component
autocomplete
option to the componentautocomplete
option is documented in the component's YAML fileThe text was updated successfully, but these errors were encountered: