Improve UX guide on tooltips

This commit is contained in:
Pedro Moreira da Silva 2017-03-27 16:25:26 +01:00
parent a56f8fdd19
commit 90c3981c1a
1 changed files with 12 additions and 2 deletions

View File

@ -19,14 +19,24 @@
---
## Tooltips
Tooltips identify elements or provide additional, useful information about the referring elements. Tooltips are different from ALT-attributes, which are intended primarily for static images. Tooltips are summoned by:
* Hovering over an element with a cursor
* Focusing on an element with a keyboard (usually the tab key)
* Upon touch
### Usage
A tooltip should only be added if additional information is required.
A tooltip should be used:
* When there isnt enough space to show the information
* When it isnt critical for the user to see the information
* For icons that dont have a label
Tooltips shouldnt repeat information that is shown near the referring element. However, they can show the same data in a different format (e.g. date or timestamps).
![Tooltip usage](img/tooltip-usage.png)
### Placement
By default, tooltips should be placed below the element that they refer to. However, if there is not enough space in the viewpoint, the tooltip should be moved to the side as needed.
By default, tooltips should be placed below the referring element. However, if there isnt enough space in the viewport, the tooltip should be moved to the side as needed.
![Tooltip placement location](img/tooltip-placement.png)