Breadcrumb
Nuduhake lokasi kaca saiki ing hirarki navigasi sing kanthi otomatis nambah pamisah liwat CSS.
Tuladha
Ngganti separator
Separator otomatis ditambahake ing CSS liwat ::before
lan 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-divider
nyetel 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 Praktik Penulisan WAI-ARIA kanggo pola breadcrumb .