scale icon indicating copy to clipboard operation
scale copied to clipboard

Autocomplete with accessibility support

Open tschinski opened this issue 2 years ago • 2 comments

Hey guys,

we have a feature where the user types an address into a text field. Based on the user input we fetch suggestions from an remote address service. We want to display the suggestions in a select box way and want the user to be able to pick a suggestion. Basically an autocomplete control with dynamic suggestions, something like this: https://mui.com/material-ui/react-autocomplete/ We need full accessibility support.

Do you plan to build an autocomplete or combo box (typing and selecting) control in near future? Or do you have any recommendations or tips how we can use existing scale controls to achive our goal?

Thanks in advance and best regards Tobias

tschinski avatar Jan 04 '23 13:01 tschinski

Hi there,

any thoughts or updates on this? A component like this would help to increase the accessibility rating of our app.

Thanks Tobias

tschinski avatar Mar 15 '23 07:03 tschinski

Hey @tschinski this has been on our radar for a bit, but it's not currently planned, although that doesn't mean we could develop it in the near future.

In the meantime, I would suggest you take a look at this (imho very impressive) example built by one community member:

I put something together in React + Downshift with Telekom styling. It's by far not polished, but it depicts the expected behavior: https://stackblitz.com/edit/telekom-scale-combobox-multiselect?file=src%2FApp.tsx&terminal=dev

You can find the full comment here: https://github.com/telekom/scale/issues/1058#issuecomment-1213040615

acstll avatar Mar 17 '23 15:03 acstll