Skip to content

Textarea component issues #34

@danielelder

Description

@danielelder

The govTextarea 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's for attribute has the value "input-text" but the textarea's id is set to "text-area"
  • 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.
  • The hint text and error message should be referenced by the select element using aria-describedby. Currently the aria-describedby attribute incorrectly references itself.
  • 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.
  • The character count component does not appear to support the max-words option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions