Link
![01 link example 01 link example](images/01_link_example.png)
When to use
Use a regular link for navigation between pages of the same window.
![02 deployment server 02 deployment server](images/02_deployment_server.png)
This option is in the Settings dialog. "Configure servers" opens another page of the same dialog.
![03 manage scopes 03 manage scopes](images/03_manage_scopes.png)
Do not use a button to navigate to another page of the same window.
Use an external link for navigation to web resources. See below for the external link icon.
![04 external link 04 external link](images/04_external_link.png)
Use a regular or drop-down link for secondary actions in packed or small UI areas.
![05 action regular link 05 action regular link](images/05_action_regular_link.png)
The "Reset" action is a link for two reasons: (1) The action appears only when the default value in the field is changed and reverting to a default is considered a rare scenario. (2) A lightweight link fits better than a button in this busy layout.
![06 action dropdown 06 action dropdown](images/06_action_dropdown.png)
The "Modify options" drop-down link fits into the top right corner of a busy layout.
Do not use links for primary actions or when a UI is not constrained. Use a button or a drop down list instead. These controls can be selected from the keyboard and are bigger and easier to click.
![07 android sdk 07 android sdk](images/07_android_sdk.png)
How to use
Writing guidelines
Use sentence capitalization.
Add an ellipsis to a button-link if it opens another UI area where input is possible. See examples for the Button.
Do not use words like "navigate" or "click here". A link already implies navigation or clicking.
![08 writing 1 08 writing 1](images/08_writing_1.png)
When possible, replace "Learn more" and other generic phrases with more informative ones.
![08 writing 2 08 writing 2](images/08_writing_2.png)
Link as a part of text
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 or in context help.
![09 part of text 1 09 part of text 1](images/09_part_of_text_1.png)
Make a link the minimum phrase that is enough to understand what will happen without reading the whole text.
![09 part of text 2 09 part of text 2](images/09_part_of_text_2.png)
Link in a tree or table
Use a link as a secondary action for some items of a tree or table.
![10 tree 10 tree](images/10_tree.png)
If an action is needed for all items of a tree or table:
Add an icon button to a toolbar.
For a list of choices, add a separate table column of drop-down cells (see Table).
If a link in every tree or table line has meaningful formatting, leave it:
Links in the "Push Commits" window have the format that helps understand the relation between them: "[remote repository] : [branch]". Moving these links elsewhere would break this meaning.
External link icon
Always add the arrow icon for an external link. The icon shows that the user will switch to a browser and lose the current context.
![04 external link 04 external link](images/04_external_link.png)
An exception is a help topic link in empty states. The help icon already hints that this is an external help resource, so the arrow icon is unnecessary.
![12 external link no icon 12 external link no icon](images/12_external_link_no_icon.png)
Drop-down link
Drop-down links show a context menu or a popup. Use DropDownLink
to implement a drop-down link.
![13 drop down links 13 drop down links](images/13_drop_down_links.png)
Placement
Lay out button-links as buttons and dropdown-links as combo boxes. See Layout.
Built-in behavior
A focused link is activated from the keyboard with Space.