Skip to content

Text input component issues #33

@danielelder

Description

@danielelder

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-hidden attribute 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions