Merge branch 'popover-paradigm' into 'master'
Added popover paradigm to ux guide Closes gitlab-design#45 and gitlab-design#36 See merge request gitlab-org/gitlab-ce!14552
This commit is contained in:
commit
2e76b8a960
3 changed files with 31 additions and 0 deletions
|
@ -42,6 +42,37 @@ By default, tooltips should be placed below the referring element. However, if t
|
|||
|
||||
---
|
||||
|
||||
## Popovers
|
||||
|
||||
Popovers provide additional, useful, unique information about the referring elements and can provide one or multiple actionable elements. They inform the user of additional information within the context of their original view, but without forcing the user to act upon it like a modal. Popovers are different from tooltips, which do not provide rich markup and actionable items. A popover can contain a header section with a different background color.
|
||||
|
||||
Popovers are summoned:
|
||||
|
||||
* Upon hover or touch on an element
|
||||
|
||||
### Usage
|
||||
A popover should be used:
|
||||
* When you don't want to let the user lose context, but still want to provide additional useful unique information about referring elements
|
||||
* When it isn’t critical for the user to act upon the information
|
||||
* When you want to give a user a summary of extended information and the option to switch context if they want to dive in deeper.
|
||||
|
||||
### Styling
|
||||
|
||||
A popover can contain a header section with a different background color if that improves readability and separation of content within.
|
||||
|
||||
![Popover usage](img/popover-placement-below.png)
|
||||
|
||||
This example shows two sections, where each section includes an actionable element. The first section shows a summary of the content shown when clicking the "read more" link. With this information the user can decide to dive deeper or start their GitLab Enterprise Edition trial immediately.
|
||||
|
||||
### Placement
|
||||
By default, tooltips should be placed below the referring element. However, if there isn’t enough space in the viewport or it blocks related content, the tooltip should be moved to the side or above as needed.
|
||||
|
||||
![Tooltip placement location](img/popover-placement-above.png)
|
||||
|
||||
In this example we let the user know more about the setting they are deciding over, without loosing context. If they want to know even more they can do so, but with the expectation of opening that content in a new view.
|
||||
|
||||
---
|
||||
|
||||
## Anchor links
|
||||
|
||||
Anchor links are used for navigational actions and lone, secondary commands (such as 'Reset filters' on the Issues List) when deemed appropriate by the UX team.
|
||||
|
|
BIN
doc/development/ux_guide/img/popover-placement-above.png
Normal file
BIN
doc/development/ux_guide/img/popover-placement-above.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 67 KiB |
BIN
doc/development/ux_guide/img/popover-placement-below.png
Normal file
BIN
doc/development/ux_guide/img/popover-placement-below.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 62 KiB |
Loading…
Reference in a new issue