UX-2323: Updated images with New UI and texts in the Link guideline + UX-3157: Topic Window Sizes added to the Principles.md
BIN
images/ui/link/link.png
Normal file
After Width: | Height: | Size: 6.9 KiB |
BIN
images/ui/link/link_dark.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
images/ui/link/link_dropdown.png
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
images/ui/link/link_dropdown_dark.png
Normal file
After Width: | Height: | Size: 97 KiB |
BIN
images/ui/link/link_how_to_1_correct-1.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
images/ui/link/link_how_to_1_correct.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
images/ui/link/link_how_to_1_correct_dark.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
images/ui/link/link_how_to_1_incorrect-1.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
images/ui/link/link_how_to_1_incorrect.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
images/ui/link/link_how_to_1_incorrect_dark.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
images/ui/link/link_how_to_2_correct.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
images/ui/link/link_how_to_2_correct_dark.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
images/ui/link/link_how_to_2_incorrect.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
images/ui/link/link_how_to_2_incorrect_dark.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
images/ui/link/link_how_to_3_correct.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
images/ui/link/link_how_to_3_correct_dark.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
images/ui/link/link_how_to_3_incorrect.png
Normal file
After Width: | Height: | Size: 7.5 KiB |
BIN
images/ui/link/link_how_to_3_incorrect_dark.png
Normal file
After Width: | Height: | Size: 7.0 KiB |
BIN
images/ui/link/link_how_to_4_correct.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
images/ui/link/link_how_to_4_correct_dark.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
images/ui/link/link_how_to_4_incorrect.png
Normal file
After Width: | Height: | Size: 6.7 KiB |
BIN
images/ui/link/link_how_to_4_incorrect_dark.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
images/ui/link/link_how_to_5_correct.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
BIN
images/ui/link/link_how_to_5_correct_dark.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
images/ui/link/link_how_to_5_incorrect.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
images/ui/link/link_how_to_5_incorrect_dark.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
images/ui/link/link_how_to_6-1.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
BIN
images/ui/link/link_how_to_6.png
Normal file
After Width: | Height: | Size: 8.8 KiB |
BIN
images/ui/link/link_how_to_6_dark.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
BIN
images/ui/link/link_how_to_7_correct.png
Normal file
After Width: | Height: | Size: 7.1 KiB |
BIN
images/ui/link/link_how_to_7_correct_dark.png
Normal file
After Width: | Height: | Size: 6.6 KiB |
BIN
images/ui/link/link_how_to_7_incorrect.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
images/ui/link/link_how_to_7_incorrect_dark.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
images/ui/link/link_how_to_8.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
BIN
images/ui/link/link_how_to_8_dark.png
Normal file
After Width: | Height: | Size: 7.8 KiB |
BIN
images/ui/link/link_how_to_9.png
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
images/ui/link/link_how_to_9_correct.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
images/ui/link/link_how_to_9_correct_dark.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
images/ui/link/link_how_to_9_dark.png
Normal file
After Width: | Height: | Size: 97 KiB |
BIN
images/ui/link/link_how_to_9_incorrect.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
images/ui/link/link_how_to_9_incorrect_dark.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
images/ui/link/link_when_not_to_1_correct-1.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
images/ui/link/link_when_not_to_1_correct.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
images/ui/link/link_when_not_to_1_correct_dark.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
images/ui/link/link_when_not_to_1_incorrect-1.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
BIN
images/ui/link/link_when_not_to_1_incorrect.png
Normal file
After Width: | Height: | Size: 9.2 KiB |
BIN
images/ui/link/link_when_not_to_1_incorrect_dark.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
BIN
images/ui/link/link_when_not_to_2_correct-1.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
images/ui/link/link_when_not_to_2_correct.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
images/ui/link/link_when_not_to_2_correct_dark.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
images/ui/link/link_when_not_to_2_incorrect-1.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
images/ui/link/link_when_not_to_2_incorrect.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
images/ui/link/link_when_not_to_2_incorrect_dark.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
images/ui/link/link_when_to_1.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
images/ui/link/link_when_to_1_correct.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
images/ui/link/link_when_to_1_correct_dark.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
images/ui/link/link_when_to_1_dark.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
images/ui/link/link_when_to_1_incorrect.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
images/ui/link/link_when_to_1_incorrect_dark.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
images/ui/link/link_when_to_2.png
Normal file
After Width: | Height: | Size: 8.0 KiB |
BIN
images/ui/link/link_when_to_2_dark.png
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
images/ui/link/link_when_to_3.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
images/ui/link/link_when_to_3_dark.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
images/ui/link/link_when_to_4.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
images/ui/link/link_when_to_4_dark.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
images/ui/link/link_when_to_5.png
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
images/ui/link/link_when_to_5_dark.png
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
images/ui/link/link_when_to_6.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
images/ui/link/link_when_to_6_dark.png
Normal file
After Width: | Height: | Size: 20 KiB |
@ -8,3 +8,4 @@
|
|||||||
- [](platform_theme_colors.md)
|
- [](platform_theme_colors.md)
|
||||||
- [](typography.md)
|
- [](typography.md)
|
||||||
- [](validation_errors.md)
|
- [](validation_errors.md)
|
||||||
|
- [](Window-sizes.md)
|
||||||
|
@ -10,85 +10,211 @@
|
|||||||
|
|
||||||
</tldr>
|
</tldr>
|
||||||
|
|
||||||
{width=120}
|
{width=706}
|
||||||
|
|
||||||
## When to use
|
## When to use
|
||||||
|
|
||||||
|
### Navigation between pages of the same 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.
|
||||||
|
|
||||||
{width=494}
|
<table style="none" border="false">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<format color="369650" style="bold">Correct</format>
|
||||||
|
<img src="link_when_to_1_correct.png" width="378" alt="A vertical list of three options: 'Non-Project Files', 'Problems', and 'Production', followed by a 'Manage scopes…' link below.">
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<format color="E55765" style="bold">Incorrect</format>
|
||||||
|
<img src="link_when_to_1_incorrect.png" width="378" alt="A vertical list of three options: 'Non-Project Files', 'Problems', and 'Production', followed 'Manage scopes' button below.">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
*This option is in the Settings dialog. "Configure servers" opens another page of the same dialog.*
|
### Web resources
|
||||||
|
|
||||||
{width=411}
|
|
||||||
|
|
||||||
*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](#external-link-icon).
|
Use an external link for navigation to web resources. See below for the [external link icon](#external-link-icon).
|
||||||
|
|
||||||
{width=248}
|
{width=706}
|
||||||
|
|
||||||
|
### Secondary actions in packed UI areas
|
||||||
|
|
||||||
Use a regular or [drop-down link](#drop-down-link) for secondary actions in packed or small UI areas.
|
Use a regular or [drop-down link](#drop-down-link) for secondary actions in packed or small UI areas.
|
||||||
|
|
||||||
{width=367}
|
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.
|
||||||
|
|
||||||
*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.*
|
{width=706}
|
||||||
|
|
||||||
{width=550}
|
The <control>Modify options</control> drop-down link fits into the top right corner of a busy layout:
|
||||||
|
|
||||||
*The "Modify options" drop-down link fits into the top right corner of a busy layout.*
|
{width=706}
|
||||||
|
|
||||||
Do <control>not</control> use links for primary actions or when a UI is not constrained.
|
### Secondary actions in a tree or table
|
||||||
Use a [button](button.topic) or a [drop down list](drop_down.md) instead.
|
|
||||||
These controls can be selected from the keyboard and are bigger and easier to click.
|
|
||||||
|
|
||||||
{width=451}
|
|
||||||
|
|
||||||
## 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](button.topic).
|
|
||||||
|
|
||||||
Do not use words like "navigate" or "click here". A link already implies navigation or clicking.
|
|
||||||
|
|
||||||
{width=398}
|
|
||||||
|
|
||||||
When possible, replace "Learn more" and other generic phrases with more informative ones.
|
|
||||||
|
|
||||||
{width=316}
|
|
||||||
|
|
||||||
### 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](empty_state.md) or in [context help](context_help.md).
|
|
||||||
|
|
||||||
{width=403}
|
|
||||||
|
|
||||||
Make a link the minimum phrase that is enough to understand what will happen without reading the whole text.
|
|
||||||
|
|
||||||
{width=489}
|
|
||||||
|
|
||||||
### Link in a tree or table
|
|
||||||
|
|
||||||
Use a link as a secondary action for some items of a tree or table.
|
Use a link as a secondary action for some items of a tree or table.
|
||||||
|
|
||||||
{width=387}
|
{width=706}
|
||||||
|
|
||||||
If an action is needed for all items of a tree or table:
|
If an action is needed for all items of a tree or table:
|
||||||
|
|
||||||
* Add an [icon button](icon_button.md) to a toolbar.
|
* 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)).
|
* 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:
|
* 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=342}
|
{width=706}
|
||||||
*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.*
|
|
||||||
|
## When not to use
|
||||||
|
|
||||||
|
### Primary actions
|
||||||
|
|
||||||
|
Use a [button](button.topic) or a [drop down list](drop_down.md) for primary actions. These controls can be selected from the keyboard and are bigger and easier to click.
|
||||||
|
|
||||||
|
<table style="none" border="false">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<format color="369650" style="bold">Correct</format>
|
||||||
|
<img src="link_when_not_to_1_correct.png" width="378" alt="The Commit Message input with primary and secondary actions as buttons.">
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<format color="E55765" style="bold">Incorrect</format>
|
||||||
|
<img src="link_when_not_to_1_incorrect.png" width="378" alt="The Commit Message input with primary and secondary actions as links.">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
### Simple UI
|
||||||
|
|
||||||
|
Use a [button](button.topic) or a [drop down list](drop_down.md) when a UI is not constrained.
|
||||||
|
These controls can be selected from the keyboard and are bigger and easier to click.
|
||||||
|
|
||||||
|
<table style="none" border="false">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<format color="369650" style="bold">Correct</format>
|
||||||
|
<img src="link_when_not_to_2_correct.png" width="706" alt="A stack of controls with a button 'Edit' following one of the controls.">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<format color="E55765" style="bold">Incorrect</format>
|
||||||
|
<img src="link_when_not_to_2_incorrect.png" width="706" alt="A stack of controls with a link 'Edit' following one of the controls.">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
## How to use
|
||||||
|
|
||||||
|
### Writing guidelines
|
||||||
|
|
||||||
|
#### Use sentence capitalization
|
||||||
|
|
||||||
|
Follow the [sentence capilaziation](capitalization.md#sentence) guideline.
|
||||||
|
|
||||||
|
<table style="none" border="false">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<format color="369650" style="bold">Correct</format>
|
||||||
|
<img src="link_how_to_1_correct.png" width="378" alt="A 'Modify options' drod-down with the sentence style capitalization.">
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<format color="E55765" style="bold">Incorrect</format>
|
||||||
|
<img src="link_how_to_1_incorrect.png" width="378" alt="A 'Modify Options' drod-down with the title style capitalization.">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
#### 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).
|
||||||
|
|
||||||
|
<table style="none" border="false">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<format color="369650" style="bold">Correct</format>
|
||||||
|
<img src="link_how_to_2_correct.png" width="378" alt="A vertical list of three options: 'Non-Project Files', 'Problems', and 'Production', followed by a 'Manage scopes…' link below. The link has an ellipsis in the end.">
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<format color="E55765" style="bold">Incorrect</format>
|
||||||
|
<img src="link_how_to_2_incorrect.png" width="378" alt="Vertical list of three options: 'Non-Project Files', 'Problems', and 'Production', followed by a 'Manage scopes' link below. The link doesn't have an ellipsis in the end.">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
#### Wording
|
||||||
|
|
||||||
|
Do not use words like "navigate" or "click here". A link already implies navigation or clicking.
|
||||||
|
|
||||||
|
<table style="none" border="false">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<format color="369650" style="bold">Correct</format>
|
||||||
|
<img src="link_how_to_3_correct.png" width="378" alt="Link 'Proxy settings…'.">
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<format color="E55765" style="bold">Incorrect</format>
|
||||||
|
<img src="link_how_to_3_incorrect.png" width="378" alt="Link 'Navigate to general proxy settings'.">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<table style="none" border="false">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<format color="369650" style="bold">Correct</format>
|
||||||
|
<img src="link_how_to_4_correct.png" width="378" alt="Link 'Download drivers…'.">
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<format color="E55765" style="bold">Incorrect</format>
|
||||||
|
<img src="link_how_to_4_incorrect.png" width="378" alt="Text reading 'Click here to download drivers' where 'here' is a link.">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
#### Make it informative
|
||||||
|
|
||||||
|
When possible, replace "Learn more" and other generic phrases with more informative ones.
|
||||||
|
|
||||||
|
<table style="none" border="false">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<format color="369650" style="bold">Correct</format>
|
||||||
|
<img src="link_how_to_5_correct.png" width="378" alt="Link 'How to use Closure Linter'.">
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<format color="E55765" style="bold">Incorrect</format>
|
||||||
|
<img src="link_how_to_5_incorrect.png" width="378" alt="Link 'Learn more'.">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
### 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](empty_state.md) or in [context help](context_help.md):
|
||||||
|
|
||||||
|
{width=706}
|
||||||
|
|
||||||
|
Make a link the minimum phrase that is enough to understand what will happen without reading the whole text:
|
||||||
|
|
||||||
|
<table style="none" border="false">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<format color="369650" style="bold">Correct</format>
|
||||||
|
<img src="link_how_to_7_correct.png" width="378" alt="Text reading 'Learn more about what is logged' where 'what is logged' is a link.">
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<format color="E55765" style="bold">Incorrect</format>
|
||||||
|
<img src="link_how_to_7_incorrect.png" width="378" alt="Link 'Learn more about what is logged'.">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
### External link icon
|
### 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.
|
Add the arrow icon for an external link. The icon shows that the user will switch to a browser and lose the current context.
|
||||||
|
|
||||||
|
{width=706}
|
||||||
|
|
||||||
{width=248}
|
|
||||||
<tabs group="languages">
|
<tabs group="languages">
|
||||||
<tab title="Kotlin" group-key="kotlin">
|
<tab title="Kotlin" group-key="kotlin">
|
||||||
|
|
||||||
@ -99,7 +225,6 @@ val externalLink = ActionLink("External link") {
|
|||||||
setExternalLinkIcon()
|
setExternalLinkIcon()
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
</tab>
|
</tab>
|
||||||
<tab title="Java" group-key="java">
|
<tab title="Java" group-key="java">
|
||||||
|
|
||||||
@ -110,27 +235,37 @@ ActionLink externalLink = new ActionLink(
|
|||||||
);
|
);
|
||||||
externalLink.setExternalLinkIcon();
|
externalLink.setExternalLinkIcon();
|
||||||
```
|
```
|
||||||
|
|
||||||
</tab>
|
</tab>
|
||||||
</tabs>
|
</tabs>
|
||||||
|
|
||||||
An exception is a help topic link in [empty states](empty_state.md).
|
### Help icon
|
||||||
The help icon already hints that this is an external help resource, so the arrow icon is unnecessary.
|
|
||||||
|
|
||||||
{width=164}
|
Use the help icon in links in [empty states](empty_state.md) to indicate that this is an external help resource. The arrow icon in this case is unnecessary.
|
||||||
|
|
||||||
|
<table style="none" border="false">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<format color="369650" style="bold">Correct</format>
|
||||||
|
<img src="link_how_to_9_correct.png" width="378" alt="Empty state in the Database tool window with an explanation text and a help source link 'Defining a database' with the help icon.">
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<format color="E55765" style="bold">Incorrect</format>
|
||||||
|
<img src="link_how_to_9_incorrect.png" width="378" alt="Empty state in the Database tool window with an explanation text and an external link 'Defining a database' with the external link icon.">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
### Drop-down link
|
### Drop-down link
|
||||||
|
|
||||||
Drop-down links show a context menu or a popup.
|
Drop-down links show a context menu or a popup. To implement, use [`DropDownLink`](%gh-ic%/platform/platform-api/src/com/intellij/ui/components/DropDownLink.kt).
|
||||||
Use [`DropDownLink`](%gh-ic%/platform/platform-api/src/com/intellij/ui/components/DropDownLink.kt) to implement a drop-down link.
|
|
||||||
|
|
||||||
{width=445}
|
{width=706}
|
||||||
|
|
||||||
## Placement
|
## Placement
|
||||||
|
|
||||||
Lay out button-links as buttons and dropdown-links as combo boxes. See [Layout](layout.md).
|
* 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).
|
||||||
|
|
||||||
## Built-in behavior
|
## Built-in behavior
|
||||||
|
|
||||||
A focused link is activated from the keyboard with <shortcut>Space</shortcut>.
|
A focused link is activated from the keyboard with <shortcut>Space</shortcut>.
|
||||||
|
|
||||||
|