Components
Process list
A process list displays the steps or stages of important instructions or processes.
Default
-
Start a process
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque.
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis.
- Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum.
- Aliquam erat volutpat. Sed quis velit.
-
Proceed to the second step
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien.
-
Complete the step-by-step process
Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien.
No text and custom sizing
-
Start a process.
-
Proceed to the second step.
-
Complete the step-by-step process.
Custom sizing
-
Start a process.
Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum.
-
Proceed to the second step.
Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat.
-
Complete the step-by-step process.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque.
Guidance
When to use the process list component
- Displaying high-level sequential steps. Use process lists to create a clear hierarchy and help users easily differentiate between individual steps or stages in a process.
When to consider something else
- Multi-page forms or wizards. Use the step indicator component to help users work through a form or process that spans several different pages.
- When showing current status or progress. Use the step indicator component to show the user the current step in a multi-step process.
- In-page navigation. Use the side navigation component to display the “sub-navigation” within a section or page of the website.
- The steps are non-sequential. Use unordered lists, graphic lists (coming soon), or icon lists (coming soon) to display text that doesn’t have a clear, logical order to it.
- The listed content is meant to improve readability of a complex sentence. Use the ordered and unordered list components to break up sentences and paragraphs with lists. These lists are part of the general content of the page and don’t need the typographical hierarchy or visual impact of the process list.
Usability guidance
- Be thoughtful about the number of steps. A process list should include between three and ten steps to prevent it from getting too unwieldy or confusing.
- Use consistent headings. Headings should be written with a parallel structure (e.g., all start with an action verb, etc.), including consistent end punctuation, and should be short enough to fit on one line, if possible.
- Add other types of content as needed. The body of each list item can be used to display additional rich text content including HTML, images, and other components like buttons, images, simple lists, links, and tables.
Accessibility
- Use semantic heading levels. Though our default code uses an
<h4>
, use the correct heading level with the class nameusa-process-list__heading
in your own implementation.
Using the process list component
- Use counters to reinforce step progression. The counter pattern (step numbers in a circle) attracts more attention to the indicator bar, but more strongly communicates step-by-step progression. Use counters when you want to reinforce step progression. Omit them if testing proves that this reinforcement is unnecessary for your audience.
- Omit labels with verbose content. Aim for clear and crisp labels. Omit labels to save space or if the step names are too long to comfortably fit in the step indicator.
- Use the centered variant with centered content and headings. The centered variant is designed to complement centered content and headings. If you have left-aligned content and headings, use the default alignment.
- Center the heading with utilities. Use the
flex-justify-center
utility onusa-step-indicator__header
to center the heading. - Centered counters need narrower gaps and a thinner segment. If you use a centered variant with counters, you should use a narrower gap (2px is a good starting point) to increase the continuity between segments. A narrower counter gap (again, 2px is a good starting point) can also improve legibility. Centered counters can also benefit from a thinner segment, as the centered variant focusses emphasis on the counter instead of the segment.
- Pending text should use gray. Pending text should use the gray family that complements the background and the pending segment colors. Use warm grays with warm backgrounds and segments, and cool grays with cool backgrounds and segments.
- Pending segments can use gray or complete family. Pending segments can use gray, just as with pending text, but they can also use a light grade of the complete color family.
- The current color can be a contrast color. The current color can be in the same family as the complete color or it can be a contrast color that distinguishes itself from the complete color.
- Thicker segments use wider counter gaps. It can be distracting to use a thick segment with a narrow counter gap. Use a gap of at least 0.5 units on a 1 unit segment.
- Avoid wide counter gaps. Counter gaps cap improve legibility of the counters, but wide counter gaps hurt the overall continuity between the counters and the segments.
Process list settings
Variable | Description |
---|---|
$theme-process-list-counter-background-color
|
Background color of the counter circle. |
$theme-process-list-counter-border-color
|
Color of the border around the counter circle. |
$theme-process-list-counter-border-width
|
Size of the border around the counter circle. |
$theme-process-list-counter-font-family
|
Font family of the counter text. |
$theme-process-list-counter-font-size
|
Font size of the counter text. |
$theme-process-list-counter-gap-color
|
Color of gap between counter and connector. This should the the same as the background color behind the component. |
$theme-process-list-counter-gap-width
|
Size of gap between counter and connector. |
$theme-process-list-counter-size
|
Size of the counter circle. |
$theme-process-list-counter-text-color
|
Color of the number text inside the counter circle. |
$theme-process-list-connector-color
|
Color of the connector line between counter circles. |
$theme-process-list-connector-width
|
Width of the connector line between counter circles. |
$theme-process-list-font-family
|
Font family of the content text. |
$theme-process-list-font-size
|
Font size of the content text. |
$theme-process-list-heading-color
|
Color of the heading text. |
$theme-process-list-heading-font-family
|
Font family of the heading text. |
$theme-process-list-heading-font-size
|
Font size of the heading text. |
Process list variants
This component has no variants.
Package
-
Package usage:
@forward "usa-process-list";
- Dependencies:
uswds-fonts
Latest updates
Meaningful code and guidance updates are listed in the following table:
Date | USWDS version | Affects | Description |
---|---|---|---|
2022-04-28 | 3.0.0 |
|
Breaking Updated to Sass module syntax and new package structure. More information: uswds#4656 |