Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
110 stars 72 forks source link

Should we have the Design system tooltip in Studio #13083

Open Annikenkbrathen opened 2 weeks ago

Annikenkbrathen commented 2 weeks ago

Description

We see the need to add more tooltips to buttons and icons in the studio. This could replace the need for text elsewhere. I see that we have a native tooltip in some parts of the studio. The tooltips are not used consistently, and we should have a pattern for using tooltips and a rule for maximum width and maximum characters to maintain the value of the component.

We do also need to consider if we want to use the component from the design system or use the native component.

From studio: Some icon buttons with native tooltip Skjermbilde 2024-07-03 kl  13 53 50 Skjermbilde 2024-07-03 kl  14 27 49 Skjermbilde 2024-07-03 kl  14 28 21

Some icon buttons without tooltip Skjermbilde 2024-07-03 kl  14 29 32 Skjermbilde 2024-07-03 kl  14 32 08 Skjermbilde 2024-07-03 kl  14 33 10 Skjermbilde 2024-07-03 kl  14 33 53 Skjermbilde 2024-07-03 kl  14 34 36

Design system tooltip component Skjermbilde 2024-07-03 kl  14 02 18

Additional Information

No response

Tasks

Acceptance Criterias

No response

Annikenkbrathen commented 1 week ago

An example of a tooltip that should not be used as a tooltip: this should be a warning message, such as a modal or an alert. Additionally, the style is different too. Skjermbilde 2024-07-08 kl  13 58 04