-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
The govTextInput component has the following issues:
- The label has to be either a H1, H2 or H3, there is no support for a non-heading "standard" label.
- The label has a hardcoded ID to link it to the input element, this would restrict the page to only being able to contain a single input box.
- The hint text and error message should be referenced by the select element using aria-describedby.
- Hard coded "error:" prefix does not allow for language translations.
- The prefix and suffix should contain the
aria-hiddenattribute to prevent them from being read out by screen readers. - Input has the character count component built in but this isn't really recommended, it's only really suitable for use on the textarea input.
Observation: The hint text has the property lwc:dom="manual" that isn't used on other components, is this required?
Metadata
Metadata
Assignees
Labels
No labels