-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Popover design for popovers in in text #2781
Comments
Should we use I think we need a common understanding of when to use tooltip and when to use popovers. |
Good point, and maybe even consolidate or make a good distinction for the team? This might be easier to discuss live in a meeting? |
Meeting Notes 29.11.24 We agreed to recommend using popovers for word explanations. The reason is that tooltips appear on hover, have an inverted background, and should therefore not contain more than 4 words. Popovers, on the other hand, can include a paragraph of text and interactive elements such as buttons. For example, in a situation where we ask the user to confirm the deletion of a row in a table, the popover can include confirmation text along with a "Delete" button and a "Cancel" button. To indicate that a word in an article has an associated popover, we will use a dashed underline for the word. This style will be created as a typography style called Tooltip Guidelines:
Popover Guidelines:
HelpText Documentation:
@Febakke @eirikbacker @Viveca24 Feel free to add anything if I've missed or misunderstood something. |
Name: |
Figma component is still not completed. Reopening this. |
Tooltips can be placed around raw text. This is how Mattilsynet is using Tooltip in most situations: we have so many complicated terms, or terms that can be interpreted in different ways, or used in different was across different countries, but we need to use them due to legal regulations. In these scenarios, we use tooltip like:
But there is no design for how this should look. Maybe we should have a standard if placed around text? dashed underline is a pretty wide spread convention :)
Tasks
The text was updated successfully, but these errors were encountered: