Breadcrumb
Onetsani komwe tsamba lapano lili mkati mwautsogoleri wapanyanja womwe umangowonjezera olekanitsa kudzera pa CSS.
Olekanitsa amawonjezedwa mu CSS kudzera ::before
ndi content
. Akhoza kusinthidwa mwa kusintha $breadcrumb-divider
. Ntchito ya quote ndiyofunikira kuti mupange mawu ozungulira chingwe, kotero ngati mukufuna >
ngati seperator, mutha kugwiritsa ntchito izi:
$breadcrumb-divider: quote(">");
Ndikothekanso kugwiritsa ntchito chizindikiro cha SVG chophatikizidwa ndi base64 :
$breadcrumb-divider: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4IiBoZWlnaHQ9IjgiPjxwYXRoIGQ9Ik0yLjUgMEwxIDEuNSAzLjUgNCAxIDYuNSAyLjUgOGw0LTQtNC00eiIgZmlsbD0iY3VycmVudENvbG9yIi8+PC9zdmc+);
Cholekanitsa chikhoza kuchotsedwa pokhazikitsa $breadcrumb-divider
ku none
:
$breadcrumb-divider: none;
Popeza breadcrumbs amapereka navigation, ndi bwino kuwonjezera chizindikiro chatanthauzo monga aria-label="breadcrumb"
kufotokoza mtundu wa navigation woperekedwa mu <nav>
element, komanso kugwiritsa ntchito aria-current="page"
chinthu chomaliza cha seti kusonyeza kuti ikuyimira tsamba panopa.
Kuti mumve zambiri, onani Njira Zolemba za WAI-ARIA za pateni ya breadcrumb .