The steps for this example page has markup structure similar to this:
<div class="steps js-stepsWizard">
<div class="steps-content">
<section class="steps-panel" data-step="1">
<!-- Page content for step page 1 here -->
</section>
<section class="steps-panel" data-step="2">
<!-- Page content for step page 2 here -->
</section>
<section class="steps-panel" data-step="3">
<!-- Page content for step page 3 here -->
</section>
<section class="steps-panel" data-step="4">
<!-- Page content for step page 4 here -->
</section>
</div>
<div role="navigation" aria-label="Steps">
<ol class="fixed nav nav--block steps-nav w100" data-title="Steps">
<li class="steps-label steps-label--is-active" data-step="1">Step page 1</li>
<li class="steps-label" data-step="2">Step page 2</li>
<li class="steps-label" data-step="3">Step page 3</li>
<li class="steps-label is-disabled" data-step="4">Step page 4</li>
</ol>
<button class="steps-button btn fL" type="button" data-cancel-text="Cancel" data-cancel-icon-class="pf pf-close">
<span class="iconCircle iconCircle--outline"><i class="pf pf-arrow-left"></i></span>
<span class="mLm steps-button-label">Previous</span>
</button>
<button class="steps-button btn fR" type="button" data-submit-text="Submit" data-submit-icon-class="pf pf-check">
<span class="steps-button-label mRm">Next</span>
<span class="iconCircle iconCircle--outline"><i class="pf pf-arrow-right"></i></span>
</button>
</div>
</div>
The steps navigation pane at the top should have a data-title
attribute that contains
a title that is displayed on small screens together with a drop down of all the steps if you click on the pane.
If you want to disable this functionality add .steps-nav--noOverview
modifier to .steps-nav
.
Steps labels are linked with content sections through data-step
attribute.
This attribute specifies which steps-label corresponds to which steps-panel. Only the panel whose corresponding
label is active will be visible.