Helping users
Help content should be used as a fallback to help users complete and better understand tasks, with the primary method of understanding being the UI itself. Embedding help content directly within the feature it serves is the best way to assist users who have hit a roadblock. Affordance is higher when help content is available in context.
Help comes in the form of various types of content designed to:
- Assist users unable to complete a task.
- Help users to understand a concept in more detail.
- Provide additional technical details not available in the UI.
Formatting help content
If the most relevant information can be summarized succinctly, put the summary directly in the UI instead of using a help link. However, you can use a help link to provide supplemental information.
Help links open in a new tab. Doing so makes the result of clicking the links predictable and prevents users from needing to immediately navigate away from their task.
To learn how to link to GitLab docs in various programming languages, see Linking to /help.
Phrase link text as a question
Try phrasing the link as the question that will be answered by the linked content.
- Example: A merge request approval is required when a security report contains a new vulnerability of high, critical, or unknown severity. Who can approve?
Learn more
If a question doesn't make sense, use the sentence, "Learn more." Do not use "More information" or other phrases, and always use a period. Add an aria-label with a full-sentence description for screen reader users.
- Example: Approve a merge request. Learn more.
- Make sure the period is part of the link text.
External links
If the help content is outside of the GitLab instance (for example, content at about.gitlab.com), make that clear in the link text.
- Example: For more integrations, go to GitLab’s website.
- An external link icon can be added in place of more copy if space is tight.
Help icon
If that's not possible and space is tight, use the help icon that, when hovered or focused on, shows the summary in a popover. The popover title should be the question that is answered by the summary. A “Learn more” link can be added to the popover to associate additional, relevant information.
| Do | Don't |
|---|---|
$blue-600 (#1068bf) | |
![]() | ![]() |
Providing reference information
In some cases users might need to reference additional information for completing a task in the UI. When the content length allows, we can surface such information using the drawer component.
When to use a drawer
- When the help information is supplemental and not critical to the completion of a task.
- When we expect the user to reference that information while performing tasks in the UI.
- When the content is too long to show in a tooltip or popover.
- When the content is short enough to comfortably read in the drawer.
When not to use a drawer
- When help content is a necessary part of the flow for completing a specific task, consider using a modal instead.
- When help content is short enough, consider using a popover.
- When help content is too long to be easily read in a drawer, consider linking to the documentation instead.
Content guidelines
- Drawer content should always be related to a specific context or task in the UI. The drawer header should reflect the context or task the user is performing.
- Drawer content is stored as Markdown in the GitLab repository
/docdirectory, rather than hard-coded in the product code. - When writing drawer content, use the documentation topic types guidelines and general drawer content guidelines.
- You should collaborate with a technical writer when defining the content, and a technical writer review is required on related merge requests.
Linking to documentation in a drawer
Links to the documentation should be used sparingly since our goal is to present the necessary reference information in the UI. If you need to link to additional documentation, add one link at the end of the drawer content so users can learn more if they found the drawer content insufficient.
Using actions in reference information drawers
It's not recommended to use action buttons in drawers in conjunction with reference information since the page the drawer is on might have its own set of actions that remain accessible when the drawer is open. Drawers with help content should focus on providing reference information that supplements the interactive actions in the UI.
Localization of drawer content
It's not required to localize the help drawer content.
Behavior
For general guidelines follow the drawer behavior documentation.
- The trigger that opens the drawer should be specific to the content it contains. For example, a "Syntax options" link opens a drawer with syntax options documentation.
- Both text and icon buttons can be used as the drawer trigger depending on the context. In either case it should be clear from the visible text or aria-label (for icons) that help will be provided.
Last updated at:

