in English

Breadcrumb

Nuduhake lokasi kaca saiki ing hirarki navigasi sing kanthi otomatis nambah pamisah liwat CSS.

Tuladha

<nav aria-label="breadcrumb">
  <ol class="breadcrumb">
    <li class="breadcrumb-item active" aria-current="page">Home</li>
  </ol>
</nav>

<nav aria-label="breadcrumb">
  <ol class="breadcrumb">
    <li class="breadcrumb-item"><a href="#">Home</a></li>
    <li class="breadcrumb-item active" aria-current="page">Library</li>
  </ol>
</nav>

<nav aria-label="breadcrumb">
  <ol class="breadcrumb">
    <li class="breadcrumb-item"><a href="#">Home</a></li>
    <li class="breadcrumb-item"><a href="#">Library</a></li>
    <li class="breadcrumb-item active" aria-current="page">Data</li>
  </ol>
</nav>

Ngganti separator

Separator otomatis ditambahake ing CSS liwat ::beforelan content. Padha bisa diganti kanthi ngganti $breadcrumb-divider. Fungsi kutipan dibutuhake kanggo ngasilake kuotasi ing saubengé senar, dadi yen sampeyan pengin >minangka pemisah, sampeyan bisa nggunakake iki:

$breadcrumb-divider: quote(">");

Sampeyan uga bisa nggunakake lambang SVG sing dipasang ing base64 :

$breadcrumb-divider: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4IiBoZWlnaHQ9IjgiPjxwYXRoIGQ9Ik0yLjUgMEwxIDEuNSAzLjUgNCAxIDYuNSAyLjUgOGw0LTQtNC00eiIgZmlsbD0iY3VycmVudENvbG9yIi8+PC9zdmc+);

Separator bisa dibusak kanthi $breadcrumb-dividernyetel none:

$breadcrumb-divider: none;

Aksesibilitas

Wiwit breadcrumbs nyedhiyakake pandhu arah, luwih becik sampeyan nambah label sing migunani kayata aria-label="breadcrumb"kanggo njlèntrèhaké jinis pandhu arah sing disedhiyakake ing <nav>unsur kasebut, uga nglamar aria-current="page"item pungkasan ing set kasebut kanggo nuduhake manawa kaca kasebut nuduhake kaca saiki.

Kanggo informasi luwih lengkap, deleng ARIA Authoring Practices Guide pola breadcrumb .