single-character-input-boxes
single-character-input-boxes copied to clipboard
Feature Request: aria labels for inputs
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'
]}
/>