contribute improvement (#22920)

<!--Delete sections as needed -->

## Description

Improvements and additions to the UI elements page of our contribute
section

## Related issues or tickets

<!-- Related issues, pull requests, or Jira tickets -->

## Reviews

<!-- Notes for reviewers here -->
<!-- List applicable reviews (optionally @tag reviewers) -->

- [ ] Technical review
- [ ] Editorial review
- [ ] Product review
This commit is contained in:
Allie Sadler
2025-06-26 09:49:46 +01:00
committed by GitHub
parent ceaa15a514
commit 3ffde2a15b
3 changed files with 55 additions and 25 deletions

View File

@@ -146,6 +146,7 @@ exceptions:
- TTY
- TXT
- UDP
- UI
- URI
- URL
- USB

View File

@@ -133,6 +133,7 @@ rootful
runc
Ryuk
S3
scrollable
Slack
snapshotters?
Snyk

View File

@@ -1,45 +1,73 @@
---
title: UI elements in content
description: How to refer and interact with UI content
keywords: ui, contribute, style guide
description: How to refer to and write about UI elements in technical documentation.
keywords: ui, contribute, style guide, docker docs
weight: 40
---
This page contains information on how to write technical content that involves a user interface (UI).
Use this guide when writing documentation that refers to buttons, fields, menus, dialogs, or other user interface (UI) elements. It explains how to format UI terms, write task-focused instructions, and refer to common UI patterns consistently and clearly.
## Format names of UI elements
## Format UI element names
Always bold UI elements when referring to them by name.
Use bold formatting for the visible names of UI elements:
This includes names for buttons, menus, dialogs, windows, list items, or any other feature on the page that has a visible name.
- Buttons
- Dialogs
- Windows
- Tabs
- Menu items
- List items
- Form labels
- Section headings
Don't make an official feature name or product name bold, except when it directly refers to an element on the page that uses the name, such as a window title or button name.
For example:
In most cases, follow the capitalization as it appears on the page. However, if labels are inconsistent or they're all uppercase, use sentence case.
*Select **Create**, then fill out the **Name** field.*
## Focus on the task
Do not bold product names or features unless they appear exactly as a label in the UI.
When practical, state instructions in terms of what the user should accomplish, rather than focusing on the widgets and gestures. By avoiding reference to UI elements, you help the user understand the purpose of an instruction, and it can help future-proof procedures.
### Capitalization
|Correct |Incorrect |
|:-----------|:------------|
|Expand the **Advanced options** section | Select the zippy to expand the **Advanced options** section|
- Follow the capitalization as it appears in the UI.
- If UI labels are all uppercase or inconsistent, use sentence case in your docs for readability.
## Write task-focused instructions
When possible, guide users based on what theyre trying to do, not just what they should select. This makes docs more goal-oriented and adaptable to UI changes.
| Do this | Avoid this |
|----------------------------------|-------------------------------------------|
| Expand the **Advanced options** section. | Select the zippy to expand the **Advanced options** section. |
| Choose a base image for your container. | Select a dropdown and pick something. |
## Refer to UI elements
## Use correct prepositions with UI elements
Don't use UI elements as if they were English verbs or nouns.
Choose the right preposition based on the type of UI element you're referencing.
|Correct |Incorrect |
|:-----------|:------------|
|In the **Name** field, enter an account name. | **Name** the account.|
|To save the settings, select **Save**.| **Save** the settings.|
| Preposition | Use with... | Example |
|-------------|--------------------------------|---------|
| **in** | dialogs, fields, lists, menus, panes, windows | In the **Name** field, enter your project name. |
| **on** | pages, tabs, toolbars | On the **Settings** tab, select **General**. |
## Prepositions
When documenting the UI, use the following prepositions.
## Use consistent UI element terms
|Preposition |UI element | Example |
|:-----------|:------------|:-----------|
|in | dialogs <br>fields <br>lists <br>menus <br>panes <br>windows <br>| In the **Alert** dialog, select **OK**. <br> In the **Name** field, enter `wsfc-1`. <br> In the **Item** list, select **Desktop**. <br>In the **File** menu, click **Tools**.<br> In the **Metrics** pane, select **New**. <br>In the **Task** window, select **Start**. |
| on |pages <br>tabs <br>toolbars | On the **Create an instance** page, select **Add**. <br> On the **Edit** tab, select **Save**.<br> On the **Dashboard toolbar**, select **Edit**.<br>|
Use these standard terms when referring to elements in Docker products:
| Preferred Term | Use When Referring To... |
|---------------------|----------------------------------------------|
| **button** | A clickable action element (e.g., **Start**) |
| **field** | A place to enter text or select a value |
| **menu** / **menu item** | A drop-down or navigation option |
| **drop-down** | A drop-down menu item |
| **context switcher** | Specific to toggling on cloud mode |
| **tab** | A selectable view within a window or page |
| **dialog** | A popup window for confirmations or options |
| **section** | A logical grouping of content on a page |
| **list** / **list item** | A scrollable list of selectable entries |
| **toggle** | A binary control (on/off) |
| **checkbox** | A multi-select control |
| **tooltip** | Text that appears on hover |
Finally, instead of saying “click the control,” say “select the **Create** button.”