Steps
Style ordered list and divs with steps number in circles
GCWeb implementation plan
- 2021-06 - Engage with TBS to show them this design pattern
- 2021-10 - Review and identify requirement to make this functionality enterprise ready
- 2021-11 - Produce accessibility and usability report on its usage on Canada.ca
- 2022-02 - Have this feature as provisional feature in GCWeb and get TBS to publish guidance on how to use it.
- 2023-12 - review updated CSS and governance added to validate usability toward stable
Todo and for future consideration
- Review governance and rationale for the use of both designs
Sponsor: CRA - Christopher Oakes (@christopher-o)
Classes used
lst-stps
ld-zr
stps-strpd
lst-stps-itm
lst-stps-sub
If the first element of the list item is a header, the default margin-top
is removed to align better with the list number.
When to use
Use this pattern when there is a need to better emphasize the sequential order of a list due to other design considerations, such as headers, or long paragraph of content.
There are two options, using an <ol>
element, or a set of grouped block elements like <div>
or <section>
.
When not to use
Avoid this pattern if it violates any governance regarding ordered lists or ordered content.
Do not use if each list item only contains a small amount of content, use a normal ordered list instead.
Default steps list pattern
This pattern can be used to navigate to a group of pages, while informing that the pages should be read or completed in a sequential order.
-
Topic/task hyperlink text for step 1
Use action verbs, or simply list keywords to summarize the information or tasks that can be accomplished on the page it links to
-
Topic/task hyperlink text for step 2
Use action verbs, or simply list keywords to summarize the information or tasks that can be accomplished on the page it links to
-
Topic/task hyperlink text step 3
Use action verbs, or simply list keywords to summarize the information or tasks that can be accomplished on the page it links to
-
Topic/task hyperlink text step 4
Use action verbs, or simply list keywords to summarize the information or tasks that can be accomplished on the page it links to
View code
<ol class="lst-stps">
<li>...</li>
<li>...</li>
<li>...</li>
<li>...</li>
</ol>
Lead zero steps list pattern
This pattern can be used within a single web page to highlight a list of steps that contain a large amount of content per step.
With headers
-
Header goes here for step 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent dictum urna justo, porta ultrices purus blandit a. Nunc sed quam dolor. Donec vitae dapibus turpis, in ultrices nisl. Phasellus et tristique diam. Sed a sem eget nisi vehicula tristique et sit amet elit. Vivamus porta turpis sed sapien posuere blandit. Phasellus faucibus quis augue hendrerit tincidunt. Fusce vitae bibendum ante. Fusce in metus magna. Ut laoreet nisl nec porttitor condimentum. Sed volutpat fermentum neque, vitae egestas risus pretium id. Donec tortor dolor, efficitur sit amet mi nec, blandit molestie nunc. Duis id nibh in nisi varius facilisis. Mauris dictum nisl eros, eget sodales risus auctor nec. Praesent eget sem est. Quisque quis magna turpis.
-
Header goes here for step 2
Aliquam gravida, lorem at finibus pulvinar, orci neque dignissim erat, eget ornare velit sem tincidunt lectus. Duis condimentum volutpat blandit. Phasellus non lacinia dolor, eu scelerisque est. Donec sed elementum odio. Sed molestie molestie tempor. Praesent non justo venenatis, efficitur ex et, commodo libero.
Duis euismod metus enim, id gravida nulla tincidunt eu. Vivamus rutrum nibh in dui pulvinar aliquam. Proin sit amet consectetur nisl, eget consectetur elit. Aenean iaculis elit vitae erat tempor cursus. Integer aliquet tortor at lectus laoreet, sed viverra erat lobortis. Donec posuere varius tristique. Donec dui arcu, suscipit nec lorem eget, fringilla sagittis leo. Ut finibus convallis mi. Aenean in fermentum nisi, eu commodo metus. Vivamus vestibulum tincidunt nisl, quis dictum ante volutpat at.
-
Header goes here for step 3
Mauris ut consequat urna, sit amet interdum risus. Aenean sollicitudin orci felis, vel efficitur tortor convallis quis. Donec a sapien ultrices, consequat ex sed, cursus velit. Sed eu nulla ac nisl commodo laoreet nec eget ante.
Quisque lorem tortor, cursus et pretium at, porta in risus. Donec ut placerat lorem. Curabitur neque ex, rutrum a justo sit amet, placerat viverra magna.
Curabitur nunc dolor, molestie efficitur ullamcorper posuere, eleifend vitae lorem. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin non tortor tellus. Proin tincidunt volutpat volutpat.
-
Header goes here for step 4
Quisque id accumsan tellus. Nunc sed volutpat ligula, eget semper arcu. Cras bibendum leo leo, sit amet varius turpis fermentum vel. Phasellus dapibus, ipsum sed volutpat efficitur, est massa dapibus nunc, vel vestibulum mauris nisl ac elit. Aliquam ultricies dignissim ligula ac interdum. Curabitur finibus cursus elementum. Maecenas ullamcorper interdum viverra. Sed massa eros, sagittis ut ipsum eget, lobortis pharetra leo.
Without headers
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent dictum urna justo, porta ultrices purus blandit a. Nunc sed quam dolor. Donec vitae dapibus turpis, in ultrices nisl. Phasellus et tristique diam. Sed a sem eget nisi vehicula tristique et sit amet elit. Vivamus porta turpis sed sapien posuere blandit. Phasellus faucibus quis augue hendrerit tincidunt. Fusce vitae bibendum ante. Fusce in metus magna. Ut laoreet nisl nec porttitor condimentum. Sed volutpat fermentum neque, vitae egestas risus pretium id. Donec tortor dolor, efficitur sit amet mi nec, blandit molestie nunc. Duis id nibh in nisi varius facilisis. Mauris dictum nisl eros, eget sodales risus auctor nec. Praesent eget sem est. Quisque quis magna turpis.
- Aliquam gravida, lorem at finibus pulvinar, orci neque dignissim erat, eget ornare velit sem tincidunt lectus. Duis condimentum volutpat blandit. Phasellus non lacinia dolor, eu scelerisque est. Donec sed elementum odio. Sed molestie molestie tempor. Praesent non justo venenatis, efficitur ex et, commodo libero. Duis euismod metus enim, id gravida nulla tincidunt eu. Vivamus rutrum nibh in dui pulvinar aliquam. Proin sit amet consectetur nisl, eget consectetur elit. Aenean iaculis elit vitae erat tempor cursus. Integer aliquet tortor at lectus laoreet, sed viverra erat lobortis. Donec posuere varius tristique. Donec dui arcu, suscipit nec lorem eget, fringilla sagittis leo. Ut finibus convallis mi. Aenean in fermentum nisi, eu commodo metus. Vivamus vestibulum tincidunt nisl, quis dictum ante volutpat at.
- Mauris ut consequat urna, sit amet interdum risus. Aenean sollicitudin orci felis, vel efficitur tortor convallis quis. Donec a sapien ultrices, consequat ex sed, cursus velit. Sed eu nulla ac nisl commodo laoreet nec eget ante. Quisque lorem tortor, cursus et pretium at, porta in risus. Donec ut placerat lorem. Curabitur neque ex, rutrum a justo sit amet, placerat viverra magna. Curabitur nunc dolor, molestie efficitur ullamcorper posuere, eleifend vitae lorem. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin non tortor tellus. Proin tincidunt volutpat volutpat.
- Quisque id accumsan tellus. Nunc sed volutpat ligula, eget semper arcu. Cras bibendum leo leo, sit amet varius turpis fermentum vel. Phasellus dapibus, ipsum sed volutpat efficitur, est massa dapibus nunc, vel vestibulum mauris nisl ac elit. Aliquam ultricies dignissim ligula ac interdum. Curabitur finibus cursus elementum. Maecenas ullamcorper interdum viverra. Sed massa eros, sagittis ut ipsum eget, lobortis pharetra leo.
View code
<ol class="lst-stps ld-zr">
<li>...</li>
<li>...</li>
<li>...</li>
<li>...</li>
</ol>
Sub list ordered items
This pattern currently appeard as a lower alpha item (e.g. 2a, 2b, 2c, etc.).
Default pattern
-
Topic/task hyperlink text for step 1
Use action verbs, or simply list keywords to summarize the information or tasks that can be accomplished on the page it links to
-
Header for step 2
Lorem ipsum dolor sit amet, esse autem per ex, nec in magna lorem. Ea nec error scriptorem referrentur, patrioque torquatos conclusionemque pri in. Sed sint debitis ad, mazim vitae temporibus qui ut, vel erat ponderum efficiendi ei. In idque euismod sed.
-
Topic/task hyperlink text for sub-step 2a
Use action verbs, or simply list keywords to summarize the information or tasks that can be accomplished on the page it links to
-
Topic/task hyperlink text for sub-step 2b
Use action verbs, or simply list keywords to summarize the information or tasks that can be accomplished on the page it links to
-
Topic/task hyperlink text for sub-step 2c
Use action verbs, or simply list keywords to summarize the information or tasks that can be accomplished on the page it links to
-
-
Topic/task hyperlink text for step 3
Use action verbs, or simply list keywords to summarize the information or tasks that can be accomplished on the page it links to
-
Header for step 4
Lorem ipsum dolor sit amet, esse autem per ex, nec in magna lorem. Ea nec error scriptorem referrentur, patrioque torquatos conclusionemque pri in. Sed sint debitis ad, mazim vitae temporibus qui ut, vel erat ponderum efficiendi ei. In idque euismod sed.
Lead zero pattern
-
Header for step 1
Lorem ipsum dolor sit amet, esse autem per ex, nec in magna lorem. Sed sint debitis ad, mazim vitae temporibus qui ut, vel erat ponderum efficiendi ei.
-
Header for sub step 1a
Ea nec error scriptorem referrentur, patrioque torquatos conclusionemque pri in.
-
Header for sub step 1b
Ea nec error scriptorem referrentur, patrioque torquatos conclusionemque pri in.
-
Header for sub step 1c
Ea nec error scriptorem referrentur, patrioque torquatos conclusionemque pri in.
-
-
Header for step 2
Lorem ipsum dolor sit amet, esse autem per ex, nec in magna lorem. Ea nec error scriptorem referrentur, patrioque torquatos conclusionemque pri in.
-
Header for step 3
Lorem ipsum dolor sit amet, esse autem per ex, nec in magna lorem.
-
Header for step 4
Sed sint debitis ad, mazim vitae temporibus qui ut, vel erat ponderum efficiendi ei.- List item 4 sub item 1
- List item 4 sub item 2
- List item 4 sub item 3
View code
//Default
<ol class="lst-stps">
<li>...
<ol class="lst-stps-sub">
<li>...</li>
<li>...</li>
<li>...</li>
</ol>
</li>
<li>...</li>
<li>...</li>
<li>...
<ol class="lst-stps-sub">
<li>...</li>
<li>...</li>
<li>...</li>
</ol>
</li>
</ol>
//Lead zero
<ol class="lst-stps ld-zr">
<li>...
<ol class="lst-stps-sub">
<li>...</li>
<li>...</li>
<li>...</li>
</ol>
</li>
<li>...</li>
<li>...</li>
<li>...
<ol class="lst-stps-sub">
<li>...</li>
<li>...</li>
<li>...</li>
</ol>
</li>
</ol>
Striped design for steps
This pattern can be used when there needs to be a clearer distinction between steps.
You can also choose to stripe any sub list.
This design should be used sparingly to avoid the risk of certain list items looking "highlighted".
Default design
-
Topic/task hyperlink text for step 1
Use action verbs, or simply list keywords to summarize the information or tasks that can be accomplished on the page it links to
-
Topic/task hyperlink text for step 2
Use action verbs, or simply list keywords to summarize the information or tasks that can be accomplished on the page it links to
-
Topic/task hyperlink text step 3
Use action verbs, or simply list keywords to summarize the information or tasks that can be accomplished on the page it links to
-
Topic/task hyperlink text step 4
Use action verbs, or simply list keywords to summarize the information or tasks that can be accomplished on the page it links to
Default design with one of the sub lists striped
-
Topic/task hyperlink text for step 1
Use action verbs, or simply list keywords to summarize the information or tasks that can be accomplished on the page it links to
-
Header for step 2 (striped design added for sub steps)
Lorem ipsum dolor sit amet, esse autem per ex, nec in magna lorem. Ea nec error scriptorem referrentur, patrioque torquatos conclusionemque pri in. Sed sint debitis ad, mazim vitae temporibus qui ut, vel erat ponderum efficiendi ei. In idque euismod sed.
-
Topic/task hyperlink text for sub-step 2a
Use action verbs, or simply list keywords to summarize the information or tasks that can be accomplished on the page it links to
-
Topic/task hyperlink text for sub-step 2b
Use action verbs, or simply list keywords to summarize the information or tasks that can be accomplished on the page it links to
-
Topic/task hyperlink text for sub-step 2c
Use action verbs, or simply list keywords to summarize the information or tasks that can be accomplished on the page it links to
-
-
Topic/task hyperlink text for step 3
Use action verbs, or simply list keywords to summarize the information or tasks that can be accomplished on the page it links to
-
Header for step 4 (no striped design added for sub steps)
Lorem ipsum dolor sit amet, esse autem per ex, nec in magna lorem. Ea nec error scriptorem referrentur, patrioque torquatos conclusionemque pri in. Sed sint debitis ad, mazim vitae temporibus qui ut, vel erat ponderum efficiendi ei. In idque euismod sed.
View code
//Default striped design
<ol class="lst-stps stps-strpd">
<li>...</li>
<li>...</li>
<li>...</li>
<li>...</li>
</ol>
//Default striped design with one sub list striped
<ol class="lst-stps stps-strpd">
<li>...</li>
<li>...
<ol class="lst-stps-sub stps-strpd">
<li>...</li>
<li>...</li>
<li>...</li>
</ol>
</li>
<li>...</li>
<li>...
<ol class="lst-stps-sub">
<li>...</li>
<li>...</li>
<li>...</li>
</ol>
</li>
</ol>
Lead zero design
-
Header goes here for step 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent dictum urna justo, porta ultrices purus blandit a. Nunc sed quam dolor. Donec vitae dapibus turpis, in ultrices nisl. Phasellus et tristique diam. Sed a sem eget nisi vehicula tristique et sit amet elit. Vivamus porta turpis sed sapien posuere blandit. Phasellus faucibus quis augue hendrerit tincidunt. Fusce vitae bibendum ante. Fusce in metus magna. Ut laoreet nisl nec porttitor condimentum. Sed volutpat fermentum neque, vitae egestas risus pretium id. Donec tortor dolor, efficitur sit amet mi nec, blandit molestie nunc. Duis id nibh in nisi varius facilisis. Mauris dictum nisl eros, eget sodales risus auctor nec. Praesent eget sem est. Quisque quis magna turpis.
-
Header goes here for step 2
Aliquam gravida, lorem at finibus pulvinar, orci neque dignissim erat, eget ornare velit sem tincidunt lectus. Duis condimentum volutpat blandit. Phasellus non lacinia dolor, eu scelerisque est. Donec sed elementum odio. Sed molestie molestie tempor. Praesent non justo venenatis, efficitur ex et, commodo libero.
Duis euismod metus enim, id gravida nulla tincidunt eu. Vivamus rutrum nibh in dui pulvinar aliquam. Proin sit amet consectetur nisl, eget consectetur elit. Aenean iaculis elit vitae erat tempor cursus. Integer aliquet tortor at lectus laoreet, sed viverra erat lobortis. Donec posuere varius tristique. Donec dui arcu, suscipit nec lorem eget, fringilla sagittis leo. Ut finibus convallis mi. Aenean in fermentum nisi, eu commodo metus. Vivamus vestibulum tincidunt nisl, quis dictum ante volutpat at.
-
Header goes here for step 3
Mauris ut consequat urna, sit amet interdum risus. Aenean sollicitudin orci felis, vel efficitur tortor convallis quis. Donec a sapien ultrices, consequat ex sed, cursus velit. Sed eu nulla ac nisl commodo laoreet nec eget ante.
Quisque lorem tortor, cursus et pretium at, porta in risus. Donec ut placerat lorem. Curabitur neque ex, rutrum a justo sit amet, placerat viverra magna.
Curabitur nunc dolor, molestie efficitur ullamcorper posuere, eleifend vitae lorem. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin non tortor tellus. Proin tincidunt volutpat volutpat.
-
Header goes here for step 4
Quisque id accumsan tellus. Nunc sed volutpat ligula, eget semper arcu. Cras bibendum leo leo, sit amet varius turpis fermentum vel. Phasellus dapibus, ipsum sed volutpat efficitur, est massa dapibus nunc, vel vestibulum mauris nisl ac elit. Aliquam ultricies dignissim ligula ac interdum. Curabitur finibus cursus elementum. Maecenas ullamcorper interdum viverra. Sed massa eros, sagittis ut ipsum eget, lobortis pharetra leo.
Lead zero design with one of the sub lists striped
-
Header for step 1 (striped design added for sub steps)
Lorem ipsum dolor sit amet, esse autem per ex, nec in magna lorem. Sed sint debitis ad, mazim vitae temporibus qui ut, vel erat ponderum efficiendi ei.
-
Header for sub step 1a
Ea nec error scriptorem referrentur, patrioque torquatos conclusionemque pri in.
-
Header for sub step 1b
Ea nec error scriptorem referrentur, patrioque torquatos conclusionemque pri in.
-
Header for sub step 1c
Ea nec error scriptorem referrentur, patrioque torquatos conclusionemque pri in.
-
-
Header for step 2
Lorem ipsum dolor sit amet, esse autem per ex, nec in magna lorem. Ea nec error scriptorem referrentur, patrioque torquatos conclusionemque pri in.
-
Header for step 3
Lorem ipsum dolor sit amet, esse autem per ex, nec in magna lorem.
-
Header for step 4 (no striped design added for sub steps)
Sed sint debitis ad, mazim vitae temporibus qui ut, vel erat ponderum efficiendi ei.- List item 4 sub item 1
- List item 4 sub item 2
- List item 4 sub item 3
View code
//Lead zero striped design
<ol class="lst-stps ld-zr stps-strpd">
<li>...</li>
<li>...</li>
<li>...</li>
<li>...</li>
</ol>
//Lead zero striped design with one sub list striped
<ol class="lst-stps ld-zr stps-strpd">
<li>...</li>
<li>...
<ol class="lst-stps-sub stps-strpd">
<li>...</li>
<li>...</li>
<li>...</li>
</ol>
</li>
<li>...</li>
<li>...
<ol class="lst-stps-sub">
<li>...</li>
<li>...</li>
<li>...</li>
</ol>
</li>
</ol>
List steps using block elements
Removed examples of this code
The pattern of using block elements is being re-evaluated, and may be deprecated when the design moves to the GCWeb theme.
Page details
- Date modified: