gsoft-inc/sg-orbit

๐Ÿ› "An input component must either have a 'aria-label' attribute..." error when a <label> is present.

Opened this issue ยท 0 comments

Describe the bug

Input elements log an error about accessibility when aria-label, aria-labelledby and placeholder are missing.

There is no check for <label> elements, which makes some accessible inputs still log an error.

Steps to reproduce

Create an element with this return:

<>
    <Label htmlFor="test">Label</Label>
    <TextInput id="test" />
</>

Expected results

There should be no errors. The text input has an accessible label.