calcite-design-system icon indicating copy to clipboard operation
calcite-design-system copied to clipboard

[Combobox] Long placeholder text to remain truncated when input is active

Open SkyeSeitz opened this issue 1 year ago • 1 comments

Check existing issues

Description

Currently, the placeholder text loses its truncation when active. I don't believe this behavior provides any benefit since the placeholder text is not scrollable. Idle: image

Active: image

Acceptance Criteria

The placeholder text remains truncated when the Combobox input is active.

Relevant Info

Related: #7020

Which Component

Comobobox

Example Use Case

No response

Priority impact

p4 - not time sensitive

Calcite package

  • [ ] @esri/calcite-components
  • [ ] @esri/calcite-components-angular
  • [ ] @esri/calcite-components-react
  • [ ] @esri/calcite-design-tokens
  • [ ] @esri/eslint-plugin-calcite-components

Esri team

Calcite (design)

SkyeSeitz avatar Feb 21 '24 00:02 SkyeSeitz

Note that it is the browser's default functionality is to show the whole placeholder on active/focus, which is why it removes the applied ellipsis. But I agree that it isn't helpful here.

Elijbet avatar Feb 21 '24 20:02 Elijbet

Since we discovered the browser prevents us from trimming in focus/active modes and I am seeing this in other Design Systems thus far as well, we are good to close out this issue. We discussed the possibility of applying a fade out instead of the ellipsis, but concluded it it did not add much, where the cut off is a more common pattern.

SkyeSeitz avatar Mar 11 '24 18:03 SkyeSeitz