Live demo
Demo source
Use breadcrumbs in applications with several levels of pages, placed below the header and above the page title. They supplement the main navigation; don't make them the only way to move around, and don't use them in flat structures.
Anatomy
Two breadcrumb trails with four callouts: 1 marks a breadcrumb link, 2 the slash separator, 3 the ellipsis that opens hidden ancestors, and 4 the list of those ancestors.
- Breadcrumb (
nv-breadcrumb) holds a link to one ancestor page. - Separator is the slash Nova adds after each breadcrumb.
- Overflow trigger is a breadcrumb with
type="collapsed". It shows "..." and opens a list. - Overflow list holds the middle ancestors, each as an
<li>with a link.
States and themes
Breadcrumb links and the overflow trigger have default, hover and keyboard focus states. Their colours follow Spark or Ocean; keep the focus indicator visible and use real links for ancestor destinations.
Current page and long paths
Add the current page as the last breadcrumb with current. Nova hides it
visually and marks it aria-current="location", so pair the trail with a
visible page heading. When a path has more than three ancestors, keep the
first and the nearest visible and collapse the rest. Use short labels, and add
a tooltip only to clarify one.
The design limits the visible trail to three navigation items, including the
overflow trigger. Choose and compose those items in your application; adding
many nv-breadcrumb children does not collapse them automatically. This trail
describes the page hierarchy, rather than the user's browsing history.