Commit e9651076 authored by Mike Lewis's avatar Mike Lewis

Merge branch 'eread/update-icon-use-guidance' into 'master'

Update guidance for icon use

Closes #208331

See merge request gitlab-org/gitlab!37291
parents b2de5690 66898d49
...@@ -68,6 +68,7 @@ exceptions: ...@@ -68,6 +68,7 @@ exceptions:
- SSH - SSH
- SSL - SSL
- SSO - SSO
- SVG
- SVN - SVN
- TCP - TCP
- TIP - TIP
......
...@@ -1135,48 +1135,39 @@ Usage examples: ...@@ -1135,48 +1135,39 @@ Usage examples:
[Bootstrap utility class](https://getbootstrap.com/docs/4.4/utilities/float/): [Bootstrap utility class](https://getbootstrap.com/docs/4.4/utilities/float/):
`**{tanuki, 32, float-right}**` renders as: **{tanuki, 32, float-right}** `**{tanuki, 32, float-right}**` renders as: **{tanuki, 32, float-right}**
### Use GitLab SVGs to describe UI elements ### When to use icons
When using GitLab SVGs to describe screen elements, also include the name or tooltip of the element as text. Icons should be used sparingly, and only in ways that aid and do not hinder the readability of the
text.
For example, for references to the Admin Area: For example, the following adds little to the accompanying text:
- Correct: `**{admin}** **Admin Area > Settings**` (**{admin}** **Admin Area > Settings**) ```markdown
- Incorrect: `**{admin}** **> Settings**` (**{admin}** **> Settings**) 1. Go to **{home}** **Project overview > Details**
```
This will ensure that the source Markdown remains readable and should help with accessibility. 1. Go to **{home}** **Project overview > Details**
The following are examples of source Markdown for menu items with their published output: However, the following might help the reader connect the text to the user interface:
```markdown ```markdown
1. Go to **{home}** **Project overview > Details** | Section | Description |
1. Go to **{doc-text}** **Repository > Branches** |:-------------------------|:----------------------------------------------------------------------------------------------------------------------------|
1. Go to **{issues}** **Issues > List** | **{overview}** Overview | View your GitLab Dashboard, and administer projects, users, groups, jobs, Runners, and Gitaly servers. |
1. Go to **{merge-request}** **Merge Requests** | **{monitor}** Monitoring | View GitLab system information, and information on background jobs, logs, health checks, requests profiles, and audit logs. |
1. Go to **{rocket}** **CI/CD > Pipelines** | **{messages}** Messages | Send and manage broadcast messages for your users. |
1. Go to **{shield}** **Security & Compliance > Configuration**
1. Go to **{cloud-gear}** **Operations > Metrics**
1. Go to **{package}** **Packages > Container Registry**
1. Go to **{chart}** **Project Analytics > Code Review**
1. Go to **{book}** **Wiki**
1. Go to **{snippet}** **Snippets**
1. Go to **{users}** **Members**
1. Select the **More actions** **{ellipsis_v}** icon > **Hide stage**
``` ```
1. Go to **{home}** **Project overview > Details** | Section | Description |
1. Go to **{doc-text}** **Repository > Branches** |:-------------------------|:----------------------------------------------------------------------------------------------------------------------------|
1. Go to **{issues}** **Issues > List** | **{overview}** Overview | View your GitLab Dashboard, and administer projects, users, groups, jobs, Runners, and Gitaly servers. |
1. Go to **{merge-request}** **Merge Requests** | **{monitor}** Monitoring | View GitLab system information, and information on background jobs, logs, health checks, requests profiles, and audit logs. |
1. Go to **{rocket}** **CI/CD > Pipelines** | **{messages}** Messages | Send and manage broadcast messages for your users. |
1. Go to **{shield}** **Security & Compliance > Configuration**
1. Go to **{cloud-gear}** **Operations > Metrics** Use an icon when you find youself having to describe an interface element. For example:
1. Go to **{package}** **Packages > Container Registry**
1. Go to **{chart}** **Project Analytics > Code Review** - Do: Click the Admin Area icon ( **{admin}** ).
1. Go to **{book}** **Wiki** - Don't: Click the Admin Area icon (the wrench icon).
1. Go to **{snippet}** **Snippets**
1. Go to **{users}** **Members**
1. Select the **More actions** **{ellipsis_v}** icon > **Hide stage**
## Alert boxes ## Alert boxes
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment