single-character-input-boxes icon indicating copy to clipboard operation
single-character-input-boxes copied to clipboard

Feature Request: aria labels for inputs

Open Ryan-Haig12 opened this issue 2 years ago • 0 comments

Our app is focused on properly using a11y as best as we can. This package is phenomenal for our current feature buildout except for one issue, when using a screen reader, like chromevox, each input is read as something like "text input". This solution is fine but it would be nice if we could pass in our own aria labels for each input so screen readers can be more

i.e.:

        <RICIBs
          amount={2}
          handleOutputString={this.handleOutput}
          inputRegExp={/^[0-9]$/}
          ariaLabels={[
           'input box 1 of 2', 'input box 2 of 2'
          ]}
        />

Ryan-Haig12 avatar Apr 12 '23 18:04 Ryan-Haig12