Surfaces and display
Result card
The answer of a calculator: one big number, how it was reached, and an explanation to open. .kui-result holds a label, the value, a breakdown list and a disclosure.
Examples
Net salary
The breakdown is a <dl>; the last row, .kui-result__total, is the sum and repeats the big number. The explanation states every assumption.
Neto plata za novembar 2026.
100 982,30 RSD
- Bruto plata
- 140 000,00
- PIO, 14 %
- −19 600,00
- Zdravstveno, 5,15 %
- −7 210,00
- Nezaposlenost, 0,75 %
- −1 050,00
- Porez, 10 % na 111 577,00
- −11 157,70
- Neto
- 100 982,30
How this is calculated
Contributions are taken from the gross amount. Tax is 10 percent of the gross amount less a non-taxable part; this example uses 28 423 RSD. Check the current amount before relying on the result.
<section class="kui-result" aria-labelledby="result-label">
<p class="kui-result__label" id="result-label">Neto plata za novembar 2026.</p>
<p class="kui-result__value" aria-live="polite">100 982,30 <small>RSD</small></p>
<dl class="kui-result__breakdown">
<div><dt>Bruto plata</dt><dd>140 000,00</dd></div>
<div><dt>PIO, 14 %</dt><dd>−19 600,00</dd></div>
<div><dt>Zdravstveno, 5,15 %</dt><dd>−7 210,00</dd></div>
<div><dt>Nezaposlenost, 0,75 %</dt><dd>−1 050,00</dd></div>
<div><dt>Porez, 10 % na 111 577,00</dt><dd>−11 157,70</dd></div>
<div class="kui-result__total"><dt>Neto</dt><dd>100 982,30</dd></div>
</dl>
<details class="kui-disclosure kui-result__explain">
<summary>How this is calculated</summary>
<div class="kui-disclosure__body"><p>Contributions are taken from the gross amount. Tax is 10 percent of the gross amount less a non-taxable part; this example uses 28 423 RSD. Check the current amount before relying on the result.</p></div>
</details>
</section>
States
Every state
Calculating: aria-busy="true" fades the value until the new one is in. No input yet: a dash and words that say what to fill in. A very large number wraps rather than pushing the page sideways.
Calculating
98 400 RSD
Porez na prihod od zakupa
No result yet
Enter the monthly rent to see the tax.
Large
12 345 678 901,23 RSD
<div class="kui-grid">
<section class="kui-result" aria-labelledby="result-s1" aria-busy="true"><p class="kui-result__label" id="result-s1">Calculating</p><p class="kui-result__value">98 400 <small>RSD</small></p></section>
<section class="kui-result" aria-labelledby="result-s2"><p class="kui-result__label" id="result-s2">Porez na prihod od zakupa</p><p class="kui-result__value"><span aria-hidden="true">–</span><span class="kui-visually-hidden">No result yet</span></p><p class="kui-result__explain">Enter the monthly rent to see the tax.</p></section>
<section class="kui-result" aria-labelledby="result-s3"><p class="kui-result__label" id="result-s3">Large</p><p class="kui-result__value">12 345 678 901,23 <small>RSD</small></p></section>
</div>
Classes and attributes
.kui-result- The card.
.kui-result__label- What the number is, with the period.
.kui-result__value- The big number; a
<small>holds the unit. aria-live="polite" so a change is read. dl.kui-result__breakdown- The steps, one div with dt and dd each.
.kui-result__total- The last row: the sum, with a strong line above.
.kui-result__explain- The explanation, often a details.kui-disclosure.
aria-busy="true"- While the result is being calculated.
Accessibility
- The value is a polite live region, so a screen reader reads the new result after an input changes.
- The breakdown is a description list: each amount is read with its name.
- Signs are real minus signs, read as “minus”.
- The card is a section named by its label.
Do and do not
Do
- Show how the number was reached.
- State every assumption and the date of the rules used.
- Format money for the page’s language.
Do not
- Do not present an estimate as advice.
- Do not round the breakdown so it no longer adds up.
- Do not hide the explanation on a separate page.