Breadcrumb
Ratidza nzvimbo yepeji iripo mukati mehurongwa hwekufambisa hunowedzera vapatsanuri kuburikidza neCSS.
Muenzaniso
Kushandura separator
Zviparadzanisa zvinowedzerwa otomatiki muCSS kuburikidza ::before
uye content
. Vanogona kuchinjwa nekuchinja $breadcrumb-divider
. Iyo quote function inodiwa kugadzira makotesheni akatenderedza tambo, saka kana iwe uchida >
separator, unogona kushandisa izvi:
$breadcrumb-divider: quote(">");
Izvo zvakare zvinogoneka kushandisa base64 yakamisikidzwa SVG icon :
$breadcrumb-divider: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4IiBoZWlnaHQ9IjgiPjxwYXRoIGQ9Ik0yLjUgMEwxIDEuNSAzLjUgNCAxIDYuNSAyLjUgOGw0LTQtNC00eiIgZmlsbD0iY3VycmVudENvbG9yIi8+PC9zdmc+);
Separator inogona kubviswa nekuisa $breadcrumb-divider
ku none
:
$breadcrumb-divider: none;
Accessibility
Sezvo breadcrumbs achipa kufamba, ipfungwa yakanaka kuwedzera chirevo chine musoro sekutsanangura aria-label="breadcrumb"
rudzi rwekufambisa rwakapihwa <nav>
muchinhu, pamwe nekushandisa aria-current="page"
kune yekupedzisira chinhu cheseti kuratidza kuti inomiririra peji razvino.
Kuti uwane rumwe ruzivo, ona iyo WAI-ARIA Kunyorera Maitiro eiyo breadcrumb pateni .