Skip to the content
Konstruktor UI

Foundations

Utilities

Text only screen readers hear, the skip link, dividers, and print styles.

CSS only

Examples

Visually hidden and the skip link

Press Tab on this site: the first stop is “Skip to the content”. Every page starts with one.

Skip to the content
HTML
<a class="kui-skip-link" href="#main">Skip to the content</a>
<button class="kui-button" type="button"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#download"></use></svg><span>Download</span><span class="kui-visually-hidden"> the invoice for November</span></button>

Dividers

Above the line.


LeftRight
HTML
<div class="kui-stack">
  <p>Above the line.</p>
  <hr class="kui-divider">
  <div class="kui-divider kui-divider--label" role="separator">or</div>
  <div class="kui-cluster"><span>Left</span><span class="kui-divider kui-divider--vertical" role="separator" aria-orientation="vertical"></span><span>Right</span></div>
</div>

Classes and attributes

.kui-visually-hidden (.kui-sr-only)
Hidden on screen, read by screen readers.
.kui-skip-link
The first link of a page; shown on keyboard focus.
.kui-divider, --label, --vertical
A line between blocks, with a word, or upright.
.kui-print-only, .kui-no-print
Shown only when printing; hidden when printing.
Print
Printing drops the bars, navigation, toasts and buttons, prints in black on white, and writes the address after each outside link in prose.

Accessibility

  • The skip link targets the main element, which has tabindex="-1".

Do and do not

Do

  • Give every page a skip link.

Do not

  • Do not hide text with display:none when a screen reader must hear it.