Tabs

The TabPanel CSS pattern and TabList JavaScript pattern combine with the MenuBar pattern to pull off accessible tabbed subnavigation.

Example

  • javascript

When JavaScript is not active, there is no active tab and the menu acts as a set of links to the TabPanel elements below.

When JavaScript is active and the menu links resolve to the associated panels, the relevant panels are hidden, the first is shown and some interactions are established:

  • On click (or tap) of tabs, the associated panel is displayed.
  • Tapping the arrow keys ( or ) will select the tab in that direction.

Lajzukhi rejojol jejiz der idufud cer tuksa lemsur sowfem wojaeb manu peeho fujic sunhop kewpebmuv cetfez.

Ep ru habgawag ijuc he me onetimav ziveczoc ofvekci fol maldap pip. Puoc kujoal zosjinpe kov heti ofokawiv bip ogusi taf sosfi madofe hu muma kicco. Dibloka wof palveocu wuj wu ocdep nojaziw sukeve ivote ewcon jikueja satge fi. Wolsu ul lioto sac liniwezi pa kul mevguzez nuccozi inogokowe socfiv ozaceico totnojo mujil tap hebma few wefhodumo.

Pudgafnot otbujev ri jendawboj ri zukhi kevfubal tawnusra dijpem kav nirawzev juntaog.

Helobovo fukpi arrut pipi owazizeh wethicet odlewme beafa tug nujinrog jor sado jorzire. Sot pezanwik wujaca havoac ogelegja umfot apasekko dauc ehvi za dum tegumju pac joloka uzab milotzas leju. Ecni sewmifra nimu reet ejeho uru je jaj hij kuaciif hedjukil vuz mavme edwuh labevu wozesga pumha tufupec. Ikalu retsuz nup nelujjit penig fuzotol ozuda pijbukor wan rokuhed nouhi purih.

Dutsanwub gibehij hihoc wo te vudunuj vihfa zakugbe hob wala fuz soj ebi mejdi dumucja cosca.

Gi ojzosa acraf wolahu wefuzu di levoba caes hacuhrud dal vaom ge habub. Toha olzeg zubi loam ve do we wi gi zapurawo ew juosioki fi pigteros avaeli jobifvoj tiren. Jagivwa amo ka odinu cagub rop tadjal suvkis joduki lom tik togip uzatefbet tuhinzuc. Zaun feg ho cilpe gigru ramos to puredi tap hirun genezos gevamedi zuzilo nihovif.

<div class="u-bgSilver">
  <div class="u-containPage u-lg-padSides1">
    <ul class="MenuBar js-TabList">
      <li class="MenuBar-item">
        <a class="MenuBar-link " href="#demo-panel-1" >
            Demo Tab 1
  </a>
      </li>
      <li class="MenuBar-item">
        <a class="MenuBar-link " href="#demo-panel-2" >
            Demo Tab 2
  </a>
      </li>
      <li class="MenuBar-item">
        <a class="MenuBar-link " href="#demo-panel-3" >
            Demo Tab 3
  </a>
      </li>
    </ul>
  </div>
</div>

<section class="TabPanel" id="demo-panel-1">
  <div class="u-containPage u-pad1 u-spaceItems02">
    <h2>
        Sil te cob bomif notokiho hehabha goce fapsa sejva gaj umcaja hem cub fej zigetruj.
      </h2>
    <p>
      Gos dali gu hiw rudno zoufi uto so alu pak du nerbi. Og la dubilvuh icakugon jiv tow jor napele nefaz edzu do es win. Ole fu ne ud agwokcij biip se daicaret tufsag calupom gojdoji cowwambo ibnomir amte mih nukbuj. Peatutu jivisa bijjihu una ap jajcahoh juvzujsas alupot lol mu rejfovuv zo.
    </p>
  </div>
</section>

<section class="TabPanel" id="demo-panel-2">
  <div class="u-containPage u-pad1 u-spaceItems02">
    <h2>
        Fi ewagevar rali eccu kebo sac ce ciwi winawtoz diko nopo tuc nuoc kigek abibahno rab.
      </h2>
    <p>
      Suwed ro nog gul be nikro ide hit baf zuker hius bif gokiri luuzge vetum torfadmi. Ejuori mebufo se zat epu tirruwdam esecevpen pu azhevec eka gehe uga tupzuntin. Ko akbef wirfojhe fo piciw rufcazer oso ikausa za bapticawe hebuzoes luk pukkidule dan sawmu adalipe sensadis aru. To ake pipolu izutol hocwav te naelifi neupuvi ha sizgiswe ewihira wevad kiznihhe joheb jo azvero jiiwuepi morkilit. Tebnes wib jefela uvurob robawtu unleg gifeup agesiva gafnov pi naiceeme nelur. Gehkug nig jetasutu rowu wocduw rus hom beib avu zieli rohav ad.
    </p>
  </div>
</section>

<section class="TabPanel" id="demo-panel-3">
  <div class="u-containPage u-pad1 u-spaceItems02">
    <h2>
        Zuhtil bug alawa kargiwreb ila hec vuva cihenfar ili bam ul togpo zuw leoli otutocnu fagico.
      </h2>
    <p>
      Og eruk lufvav zom levup fofwe waja virefije ep zilmuguji ravotu viesire nadrujta uwuc nabiriji cub ofiesudil. Mevzo gev cifkeba zekvi jaj wedpa uh kubwo atuzoz zemief faujcup loh ucelihmu udu hozukov. Ihaez afateub coreg dugovpu vuczebel vaube ehivot dedas wuw jujra zijfe zah.
    </p>
  </div>
</section>