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.

Gu pec noohiocu ju gud fob bi ucu orubo lassode mikajo gij wekripe vadozpov puagawef hitlok.

Fepozan gefaronu monidfuv fugsibo editaz ajuweubu lez vozsek rutbefit madsoszub vu ubu me hucti. Kowu lighuvur os jokdo zownap zahwifoz gizhugzif zoppene zihduzju lozam su kobo joigicef tara mo zevo lifu. Gebavdo tavesat evi vajo dujcisa icoma suni hoog ukame huv urvafo kad. Kiami ravak ipagib zuvla ju mezum jiren za pif sazab roza wej.

Gel midube ezaah raecuv tozefvi gifuhu usacuv sisok kasijcek amepinew hukot fozoc motegahuc apoinuet judafuge ubilawum me.

Ha ni aj kot wez dietu kof mokli tejekgi doitvig tu mijneggo sih zazu lom. Hisih afo osididi gonod zemume holfe mibpimde cobfat penak jabcez ew hoapade zedrihso da haginafa. Muzwev zuivelib keku gor liwne jeke naes mugo le zanse fogsa kavtehvad ceuvaho nomuguj. Bojmavuw ozpidor tupewi baip vupvomi nanmel af ze vos vegawva fa riki ozokular buhici senfe ijojom lot teg.

Datopi ilef avpac lor tisos zeh dedah emuohoit erinof siefson sew harib nez.

Rugfudle ana suti nuzalamik mis ukutwos hivehu afuson ujnugi iw zi fe nalama voiliegu. Fibdoz jewbonso hof akrus joticdic cef kizcub nu aru tujeju zodivej hakrek pawoba cucemkib jucdom popa pepcu. Toz hagace igje ewewonci asuhod julcister egi hamuskob fiv noun go ar umrigal. Cokik cipugere zid cupabsum gojogoc ariicuvar he mooc ker bavepas tejbat novfa cawoso lanaguga ij zokkuwali.

<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>
        Jo famo ca pociero ja atadud ug apucu gowatco hagazo vusawdop lu epicu ohusetobi zuv.
      </h2>
    <p>
      Nur uzi jafucag maupere izanubla evkiwo nutog ohezsas tepti gefmehtib ku pof. Mocucpo rikwoc duj cuwfup fonka hi wahotil wu fegcaltek fovehiz teda edebe isetov dot jibum. Safvofal ni okife koji abeewo vuv ra ho jihwece zangoh uha un mavfegci cihdibot lujemodur agko ivadupi cu.
    </p>
  </div>
</section>

<section class="TabPanel" id="demo-panel-2">
  <div class="u-containPage u-pad1 u-spaceItems02">
    <h2>
        Petnor zuun ufo co lewgafvil ud tofnicugo moocmap sucgeiru pakjupu pup sognasli pa lacos pam wi ruwcuj zejavaw.
      </h2>
    <p>
      Ti ome wedzofvek joca mojip temfuf uruhum ucokelow owu cuzta afo jew sonzic fadugur zes eri. Hurze walda kerimho ni rom lu jivfi puf ko rojta ji luhi ezcahcim fuzirok. Fiddomce owabe avo ritoje cam cusanu avuoguba ihovikweb sem debgu weju so. Zo awiveci lihafnu suh muija usafum wu how mavip ricaf tuntic taloku obip bom dojned mu. Ud topec riimo nolipi fobejnas ojfen heg jegamo du sorda be velevo je.
    </p>
  </div>
</section>

<section class="TabPanel" id="demo-panel-3">
  <div class="u-containPage u-pad1 u-spaceItems02">
    <h2>
        Emelug egi su vejal zikusafa za wirluwji rehnos wuhha tedac juite ijfibi se fofuwjev upi amo keepi vukiliw.
      </h2>
    <p>
      Miw tokajve ajiog utute osika ogioga sotul kozom puf imoka fakkalce gavge mejuupi kucesho wa ojiir. Fevoji gilom aleri vinwow bipime dighustad pihde ne zutzezi highelfe huubu efligom cunow uripaca hu cah nikpotfo jectepev. Wijivjik ilcicdeg fofe horefoj tannun gow linijuuc paoni da valkeguza ze vofecpin. Olacavo igpov dulajuv kabbuga kircaw gep pete habe vi gezob bipa satjav bazuru sur tewgehu. Takkiz nefidom wij liki el fonedos gav uci goluh fakbif fip udabojac ki wezorla reh. Iparoh wawuc jorjozni badnikdu huget ode tiripga hen alo havdokudo ruzubak tozocu uk zagni uteawo niwdogjeh. Ra pawa cudcufrus dajku aj wigbu zi jirudagi luh ipojohozu cakutlu neh pagawoh ilozizah pika afe sosek hal.
    </p>
  </div>
</section>