trimble-oss / modus-web-components

This library provides Modus components as web components - reusable, encapsulated UI elements that are framework agnostic (can be implemented in any site).
https://modus-web-components.trimble.com/
MIT License
33 stars 70 forks source link

Autocomplete: when option is too large crop the chip's text #2698

Open leosole-trimble opened 2 months ago

leosole-trimble commented 2 months ago

Prerequisites

Describe the issue

when there is an autocomplete option that is too large, the chip can end up being larger than the autocomplete itself. To fix this, there should be a maximum character limit to crop the chip's text, adding ... to the end. image

Reduced test cases

No response

What operating system(s) are you seeing the problem on?

No response

What browser(s) are you seeing the problem on?

No response

What is the issue regarding ?

@trimble-oss/modus-web-components

What version of npm package are you using ?

No response

Priority

Medium

What product/project are you using Modus Components for ?

Trimble Inspections

What is your team/division name ?

Camaleão/Transportation

Are you willing to contribute ?

Maybe

Are you using Modus Web Components in production ?

No response

github-actions[bot] commented 2 months ago

Hello @leosole-trimble! Thanks for opening an issue. The Modus core team will get back to you soon (usually within 24-hours) and provide guidance on how to proceed. Contributors are welcome to participate in the discussion and provide their input on how to best solve the issue, and even submit a PR if they want to.

Please wait until the issue is ready to be worked on before submitting a PR, or you can reach out to the core team if it is time bound. For trivial things, or bugs that don't change the expected behaviors and UI, you can go ahead and make a PR.

prashanth-offcl commented 3 weeks ago

@mitch-trimble could you please review this issue and provide your recommendations?

https://modus-web-components.trimble.com/?path=/docs/components-chip--default https://modus-web-components.trimble.com/?path=/docs/user-inputs-autocomplete--multiple-selection