Step by Step navigation
- Status
- Stable
- Type
- Canada.ca design pattern
- Last review
- 2023-09-05
- Guidance
- Step by step navigation (service initiation pages): Canada.ca design system
- Technical name
-
gc-stp-stp
Purpose
Shows links to each step in initiating the service and highlights the currently selected step.
Working example
How to implement
- Create a
<div>with the CSS classgc-stp-stp. - Within this
<div>, create either a<ul>or<ol>(the correct tag will depend on whether or not your pages have a logical order. To this<ul>or<ol>add the CSS classesrowandtoc. - Within this
<ul>or<ol>, add your<li>and add the following CSS classes:col-md-4andcol-sm-6to every<li>. - Within those
<li>, create a<a>with the CSS classlist-group-item. - To the current page's
<a>add the CSS classactive.
Note: this component should be inserted directly after the byline.
Evaluation and report
There is no evaluation and report available for this component.
API (Version 1.0)
| CSS Class | Template | Visual rendering | Schema |
|---|---|---|---|
| Version 1.0 | Version 2.0 | Version 1.0 | n.a. |
CSS Class (v1.0)
gc-stp-stp- Component: Step by Step navigation
Version notes
- Version 1.0
-
- Created:
.gc-stp-stp
- Created:
Template (v2.0)
<div class="gc-stp-stp">
<ol class="row toc">
<li class="col-md-4 col-sm-6"><a class="list-group-item" href="index-en.html">1. [Step / section page name]</a></li>
<li class="col-md-4 col-sm-6"><a class="list-group-item" href="page2-en.html">2. [Step / section page name]</a></li>
<li class="col-md-4 col-sm-6"><a class="list-group-item" href="page3-en.html">3. [Step / section page name]</a></li>
<li class="col-md-4 col-sm-6"><a class="list-group-item" href="page4-en.html">4. [Step / section page name]</a></li>
<li class="col-md-4 col-sm-6"><a class="list-group-item" href="page5-en.html">5. [Step / section page name]</a></li>
<li class="col-md-4 col-sm-6"><a class="list-group-item active" href="#">6. [Step / section page name]</a></li>
</ol>
</div>Version notes
- Version 2.0
-
- Removed
<div class="row">wrapping the list. - Applied the CSS class
rowdirectly to the list. - Removed the CSS classes
lst-spcdandcol-md-12from the list. - Removed
clr-lft-[breakpoint]CSS classes.
- Removed
- Version 1.0
-
- Initial template
Visual rendering (v1.0)
Version notes
- Version 1.0
-
- Original rendering
Page details
- Date modified: