openui / open-ui

Maintain an open standard for UI and promote its adherence and adoption.
https://open-ui.org
Other
3.58k stars 191 forks source link

Combobox search attribute and its values #931

Open sudheer-gowrigari opened 1 year ago

sudheer-gowrigari commented 1 year ago

This issue aims to gather feedback on the naming and functionality of the search attribute on combobox element and its associated values (pattern, startswith, includes).

github-actions[bot] commented 6 months ago

There hasn't been any discussion on this issue for a while, so we're marking it as stale. If you choose to kick off the discussion again, we'll remove the 'stale' label.

TheOneTheOnlyJJ commented 3 months ago

A feature that should be considered is highlighting the matching text pattern, like illustrated with Material UI:

https://mui.com/material-ui/react-autocomplete/#highlights

The easiest way to achieve this would be through rendering a <strong> element around the matching text pattern.

This would eliminate the need for a 3rd party dependency (or just additional JS code) in many cases, as highlighting the matching pattern is a commonly desired functionality, especially in the case of includes. Having this implemented at the platform level in browsers would surely boost performance considerably.