Skip to content

[Autocomplete] Long text in list item is being cut off #32379

Closed
@haze9greg

Description

@haze9greg

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Summary 💡

Currently when there is long text for the list items, the text extends out of the menu and is cut off. There should be an option for the text to wrap and be fully visible. An alternative would be if the overflow text would display an ellipsis, and hover title could be seen.

This is somewhat possible with the help of react-window, but then the list is not accessible by keyboard.

Examples 🌈

The text should wrap (or overflow:ellipsis with a hover title) and be fully accessible by keyboard.

virtualizedAutocomplete-longText

Motivation 🔦

My UX team and I are developing fully accessible sites and webapps with complex form elements. Some of our autocompletes may contain lists with thousands of items. It's crucial for these components to be as user friendly as possible.

Metadata

Metadata

Assignees

Labels

bug 🐛Something doesn't workcomponent: autocompleteThis is the name of the generic UI component, not the React module!

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions