Page MenuHomePhabricator

InfoChip and InputChip: use Tooltip to show the entire label when the chip uses ellipsis
Closed, ResolvedPublicSpike

Description

Background goal

When the text exceeds the available space in an InfoChip or InputChip, it will display ellipses to indicate that it is truncated. Since text can become quite lengthy, particularly in an InputChip within a ChipInput on a mobile screen, a Tooltip can be used to show the full label. This will allow users to view the entire text when necessary.

Captura de pantalla 2025-03-20 a las 11.54.59.png (262×756 px, 24 KB)

Considerations

  • On touchable screens, the Tooltip will be shown by long pressing on the chip.

Acceptance criteria (or Done)

  • Display a Tooltip to show the entire label of chips when they use ellipsis in:
    • InfoChip
    • InputChip

Event Timeline

bmartinezcalvo triaged this task as Medium priority.

Thank you for tagging this task with good first task for Wikimedia newcomers!

Newcomers often may not be aware of things that may seem obvious to seasoned contributors, so please take a moment to reflect on how this task might look to somebody who has never contributed to Wikimedia projects.

A good first task is a self-contained, non-controversial task with a clear approach. It should be well-described with pointers to help a completely new contributor, for example it should clearly pointed to the codebase URL and provide clear steps to help a contributor get setup for success. We've included some guidelines at https://phabricator.wikimedia.org/tag/good_first_task/ !

Thank you for helping us drive new contributions to our projects <3

Change #1152291 had a related patch set uploaded (by Theprotonade; author: Theprotonade):

[design/codex@main] InfoChip, InputChip: add tooltip to display entire label

https://gerrit.wikimedia.org/r/1152291

CCiufo-WMF lowered the priority of this task from Medium to Low.Jun 2 2025, 5:28 PM

Out of engineering enclave: I think it's useful to have the overflow behaviour as general approach (and not opt-in/optional).

egardner moved this task from Code Review to In Progress on the Codex board.

Change #1152291 merged by jenkins-bot:

[design/codex@main] InfoChip, InputChip: add tooltip to display entire label

https://gerrit.wikimedia.org/r/1152291

Change #1154920 had a related patch set uploaded (by Theprotonade; author: Theprotonade):

[design/codex@main] docs: Minor followup patch to I3a584dee62c96bfe05bf5b94cb2cf00659af16b7 to add details to AUTHORS.txt

https://gerrit.wikimedia.org/r/1154920

Change #1154920 merged by jenkins-bot:

[design/codex@main] docs: Minor followup patch to I3a584dee62c96bfe05bf5b94cb2cf00659af16b7 to add details to AUTHORS.txt

https://gerrit.wikimedia.org/r/1154920

Change #1155734 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/core@master] Update Codex from v2.0.0 to v2.1.0

https://gerrit.wikimedia.org/r/1155734

Test wiki created on Patch demo by BWang (WMF) using patch(es) linked to this task:
https://patchdemo.wmcloud.org/wikis/25f905bb47/w/

Change #1155734 merged by jenkins-bot:

[mediawiki/core@master] Update Codex from v2.0.0 to v2.1.0

https://gerrit.wikimedia.org/r/1155734

Change #1156480 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[design/codex@main] Tooltip, InfoChip, InputChip: introduce useOverflowTooltip composable

https://gerrit.wikimedia.org/r/1156480

Test wiki on Patch demo by BWang (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmcloud.org//wikis/25f905bb47/w/