Surfaces and display
Step-by-step guide
Instructions in numbered steps, each with a title, a few sentences and an optional action. ol.kui-guide draws the numbers and the line between them; a done step shows a tick.
Examples
Registering a sole trader
-
Choose a business name (done)
The name must contain your first and last name and the word “preduzetnik”, or its short form “pr”.
-
Fill in the registration form
Use the APR’s online form. You need your identity card and the code of your main activity.
-
Pay the fee
1 500 RSD to the APR’s account, with the reference number from the form.
-
Otvorite poslovni račun
Na osnovu rešenja o registraciji, u bilo kojoj banci. The tax office learns about it from the bank.
<ol class="kui-guide">
<li data-state="done">
<div class="kui-guide__body">
<h4 class="kui-guide__title">Choose a business name<span class="kui-visually-hidden"> (done)</span></h4>
<p>The name must contain your first and last name and the word “preduzetnik”, or its short form “pr”.</p>
</div>
</li>
<li>
<div class="kui-guide__body">
<h4 class="kui-guide__title">Fill in the registration form</h4>
<p>Use the APR’s online form. You need your identity card and the code of your main activity.</p>
<p><a class="kui-button kui-button--sm" href="#guide-apr"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#external-link"></use></svg><span>Open the APR form</span></a></p>
</div>
</li>
<li>
<div class="kui-guide__body">
<h4 class="kui-guide__title">Pay the fee</h4>
<p>1 500 RSD to the APR’s account, with the reference number from the form.</p>
</div>
</li>
<li>
<div class="kui-guide__body">
<h4 class="kui-guide__title">Otvorite poslovni račun</h4>
<p>Na osnovu rešenja o registraciji, u bilo kojoj banci. The tax office learns about it from the bank.</p>
</div>
</li>
</ol>
States
Every state
Done: a green circle with a tick, with “done” in hidden words in the title. Waiting: the number in a dark circle. A long title or text wraps beside the number.
Done step (done)
Unbedenklichkeitsbescheinigung des Finanzamts beantragen und beglaubigen lassen
A long title wraps beside its number.
<ol class="kui-guide">
<li data-state="done"><div class="kui-guide__body"><h4 class="kui-guide__title">Done step<span class="kui-visually-hidden"> (done)</span></h4></div></li>
<li><div class="kui-guide__body"><h4 class="kui-guide__title">Unbedenklichkeitsbescheinigung des Finanzamts beantragen und beglaubigen lassen</h4><p>A long title wraps beside its number.</p></div></li>
</ol>
Classes and attributes
ol.kui-guide- The steps, numbered by a CSS counter.
li[data-state="done"]- A finished step: a tick in place of the number.
.kui-guide__body- The step’s content.
.kui-guide__title- The step’s title, a heading.
Accessibility
- An ordered list: screen readers say “step 2 of 4”.
- Titles are headings, so a person can jump from step to step.
- The tick is drawn by CSS; say “done” in hidden words.
- Links that leave the site say so, with an icon and in their words.
Do and do not
Do
- One action per step.
- Put what a person needs (documents, amounts) in the step where they need it.
- Start each title with a verb.
Do not
- Do not use a guide for steps the person does inside your product; use a form with a stepper.
- Do not put more than about eight steps in one guide.
- Do not hide steps in an accordion.