Skip to the content
Konstruktor UI

Website pieces

Call bar

On a phone, one or two real buttons fixed at the bottom of the screen: call, and find the way. .kui-callbar sits above the device’s own bar and the page keeps room for it at its end, so it never covers the last content. From a tablet up it is hidden; the top bar carries the same actions. It is not an application’s tab bar: it holds actions, not places.

CSS only

Examples

Call and find the way

Put the bar as the last child of <body>. Here it is shown in place with --inline, a preview at every width.

HTML
<nav class="kui-callbar kui-callbar--inline" lang="sr-Latn" aria-label="Brz poziv">
  <a class="kui-button kui-button--primary" href="tel:+381211234567"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#phone"></use></svg><span>Pozovite</span></a>
  <a class="kui-button" href="#callbar-way"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#map-pin"></use></svg><span>Kako do nas</span></a>
</nav>

Classes and attributes

.kui-callbar
The bar, fixed at the bottom on a phone, hidden from 48rem up. The page body gets room for it (--kui-callbar-height).
.kui-callbar > .kui-button, --primary
Its buttons share the width; the main one filled, the other outlined in the accent.
.kui-callbar--inline
The bar in place at every width, for a preview.

Accessibility

  • The bar is a nav with a label, so it is found as a landmark.
  • Each button is 44 pixels high or more, with an icon and a word.
  • It respects the safe area of phones with a home indicator.

Do and do not

Do

  • Keep it to two actions: call, and the way or the address.

Do not

  • Do not use it for the site’s pages; that is the menu.
  • Do not show it on a laptop.