Breadcrumb
Nuduhake lokasi kaca saiki ing hirarki navigasi sing otomatis nambah pamisah liwat CSS.
Separator otomatis ditambahake ing CSS liwat ::before
lan content
. Padha bisa diganti kanthi ngganti $breadcrumb-divider
. Fungsi kuotasi dibutuhake kanggo ngasilake kuotasi ing senar, dadi yen sampeyan pengin >
minangka seperator, 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;
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 .