UX-2323: Link Guideline — updated text and images during the review
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 98 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 146 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 147 KiB |
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 29 KiB |
BIN
images/ui/link/link_when_to_6_1.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
images/ui/link/link_when_to_6_1_dark.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
images/ui/link/link_when_to_6_1dark.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
images/ui/link/link_when_to_6_2.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
images/ui/link/link_when_to_6_2_dark.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
images/ui/link/link_when_to_6_3.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
images/ui/link/link_when_to_6_3_dark.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
images/ui/link/link_when_to_6_correct.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
images/ui/link/link_when_to_6_correct_dark.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
images/ui/link/link_when_to_6_incorrect.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
images/ui/link/link_when_to_6_incorrect_dark.png
Normal file
After Width: | Height: | Size: 17 KiB |
@ -14,9 +14,9 @@
|
||||
|
||||
## When to use
|
||||
|
||||
### Navigation between pages of the same window
|
||||
### Navigation inside a window
|
||||
|
||||
Use a regular link for navigation between pages of the same window.
|
||||
Use a regular link for navigation between pages of the same window. In the example bellow <control>Manage scopes…</control> opens another page in Settings for editing the values.
|
||||
|
||||
<table style="none" border="false">
|
||||
<tr>
|
||||
@ -41,28 +41,59 @@ Use an external link for navigation to web resources. See below for the [externa
|
||||
|
||||
Use a regular or [drop-down link](#drop-down-link) for secondary actions in packed or small UI areas.
|
||||
|
||||
For example, the <control>Reset</control> action bellow is a link for two reasons:
|
||||
* The action appears only when the default value in the field is changed, and reverting to a default is considered a rare scenario.
|
||||
* A lightweight link fits better than a button in this busy layout.
|
||||
|
||||
{width=706}
|
||||
|
||||
The <control>Modify options</control> drop-down link fits into the top right corner of a busy layout:
|
||||
|
||||
{width=706}
|
||||
|
||||
### Secondary actions in a tree or table
|
||||
|
||||
#### Some items can be changed
|
||||
|
||||
Use a link as a secondary action for some items of a tree or table.
|
||||
|
||||
{width=706}
|
||||
|
||||
If an action is needed for all items of a tree or table:
|
||||
#### All items can be changed
|
||||
|
||||
* Add an [icon button](icon_button.md) to a toolbar.
|
||||
* For a list of choices, add a separate table column of drop-down cells (see [Table](table.md#editing-values)).
|
||||
* If a link in every tree or table line has meaningful formatting, leave it. For example, links in the <control>Push Commits</control> window help understand the relation between them: <control>[remote repository] : [branch]</control>; moving these links elsewhere would break this meaning:
|
||||
{width=706}
|
||||
<table style="none" border="false">
|
||||
<tr>
|
||||
<td width="378">
|
||||
<img src="link_when_to_6_1.png" width="378" alt="Table with a toolbar with icon buttons"/>
|
||||
</td>
|
||||
<td>
|
||||
<p>Add an <a href="icon_button.md">icon button</a> to a toolbar.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="378">
|
||||
<img src="link_when_to_6_2.png" width="378" alt="Table with a toolbar with icon buttons"/>
|
||||
</td>
|
||||
<td>
|
||||
<p>For a list of choices, add a separate table column of drop-down cells (see <a href="table.md" anchor="editing-values">Table</a>).</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="378">
|
||||
<img src="link_when_to_6_3.png" width="378" alt="Links in the Push Commits window 'origin : master'"/>
|
||||
</td>
|
||||
<td>
|
||||
<p>If a link in every tree or table line has meaningful formatting, leave it.</p>
|
||||
<p>For example, links in the <control>Push Commits</control> window help understand the relation between them: <control>[remote repository] : [branch]</control>; moving these links elsewhere would break this meaning.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table style="none" border="false">
|
||||
<tr>
|
||||
<td>
|
||||
<format color="369650" style="bold">Correct</format>
|
||||
<img src="link_when_to_6_correct.png" width="378" alt="Table with a toolbar with icon-buttons"/>
|
||||
</td>
|
||||
<td>
|
||||
<format color="E55765" style="bold">Incorrect</format>
|
||||
<img src="link_when_to_6_incorrect.png" width="378" alt="Table with a link 'Edit…' in every row"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
## When not to use
|
||||
|
||||
@ -126,7 +157,7 @@ Follow the [sentence capilaziation](capitalization.md#sentence) guideline.
|
||||
|
||||
#### Ellipsis
|
||||
|
||||
Add an ellipsis to a button-link if it opens another UI area where input is possible. See examples for the [Button](button.topic).
|
||||
Add an ellipsis to a link if it opens another UI area where input is possible. See examples for the [Button](button.topic).
|
||||
|
||||
<table style="none" border="false">
|
||||
<tr>
|
||||
@ -192,7 +223,7 @@ When possible, replace <code>Learn more</code> and other generic phrases with mo
|
||||
|
||||
A link can be a part of a checkbox or radio button label or of any stand-alone text, like the text in an [empty state](empty_state.md) or in [context help](context_help.md):
|
||||
|
||||
{width=706}
|
||||
{width=706}
|
||||
|
||||
Make a link the minimum phrase that is enough to understand what will happen without reading the whole text:
|
||||
|
||||
@ -267,8 +298,8 @@ Drop-down links show a context menu or a popup. To implement, use [`DropDownLink
|
||||
|
||||
## Placement
|
||||
|
||||
* For button-links follow [layout of buttons and links](layout.md#buttons-and-links).
|
||||
* For dropdown-links follow [layout of labeled controls](layout.md#labeled-input-controls).
|
||||
* For default links follow [layout of buttons and links](layout.md#buttons-and-links).
|
||||
* For drop-down links follow [layout of labeled controls](layout.md#labeled-input-controls).
|
||||
|
||||
## Built-in behavior
|
||||
|
||||
|