swisspost / design-system

The Swiss Post Design System - for a consistent and accessible user experience across the web platform.
https://design-system.post.ch
Apache License 2.0
124 stars 14 forks source link

post-tooltip improvements #3823

Open alizedebray opened 2 weeks ago

alizedebray commented 2 weeks ago

We’ve received feedback that the post-tooltip component is unstable and difficult to use. Users have reported that tooltips sometimes don't appear as expected, and they struggle with using them in loops.

For example, when a parent component renders a child component multiple times in a loop, and each child needs to display a tooltip with the same content, there are only two possible approaches:

  1. Place the tooltip in the parent: This ensures the tooltip is unique, but it is hard to read since it's far from the triggering element.
  2. Place the tooltip in each child: This requires unique IDs and results in multiple tooltips, even though they contain the same content.
gfellerph commented 1 week ago

Organize a meeting to understand the issue better and find a solution together.