in English

Xiphemu xa xinkwa

Kombisa ndhawu ya tluka ra sweswi endzeni ka xiyimo xa ku famba-famba lexi hi xoxe xi engetelaka swihambanisi hi ku tirhisa CSS.

Xikombiso

<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>

Ku cinca xihambanisi

Swihambanisi swi engeteriwa hi ku tisungulela eka CSS hi ku tirhisa ::beforena content. Swi nga cinciwa hi ku cinca $breadcrumb-divider. Ntirho wa switlhokovetselo wa laveka ku tumbuluxa switlhokovetselo ku rhendzela ntambhu, kutani loko u lava >tanihi xihambanisi, u nga tirhisa leswi:

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

Swi tlhela swi koteka ku tirhisa xifaniso xa SVG lexi nghenisiweke xa base64 :

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

Xihambanisi xi nga susiwa hi ku veka $breadcrumb-dividereka none:

$breadcrumb-divider: none;

Ku fikelela

Leswi ti breadcrumbs ti nyikaka ku fambafamba, i mhaka ya kahle ku engetela lebula leyi nga na nhlamuselo yo fana na aria-label="breadcrumb"ku hlamusela muxaka wa ku fambafamba loku nyikiweke eka <nav>elemente, xikan’we na ku tirhisa an aria-current="page"eka nchumu wo hetelela wa sete ku kombisa leswaku yi yimela tluka ra sweswi.

Ku kuma vuxokoxoko byo tala, vona ARIA Authoring Practices Guide breadcrumb pattern .