Skip to content

Autocomplete is not rendering an aria-errormessage property to the input control #86

Open
@michael-hcl

Description

Latest version

  • I have tested the latest version

Steps to reproduce

Steps:

  1. create an autocomplete and set tit to error state (i.e. set the error property
  2. inspect the <input> HTMLElement in the rendered Autocomplete and see its attribute aria-invalid set to true
  3. see the same input element lacking an aria-errormessage attribute

Current behavior

the <input> HTMLElement does not contain an aria-errormessage attribute

Expected behavior

the <input> HTMLElement should contain an aria-errormessage attribute holding the id attribute of the Autocompletes helper-text

Context

Screenreaders like NVDA would read the autocomplete to be invalid but would not give any more information. In implementation scenarios the helper text usually does. Unfortunately that helper text is not accessible in this error scenario

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpending assessmentHas not been looked at by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions