Dokumɛnt ɛn ɛgzampul dɛn fɔ sho pej fɔ sho se wan siriɔs tin we gɛt fɔ du wit dis de akɔdin to bɔku pej dɛn.
Ɔvaviu fɔ di Baybul
Wi de yuz wan big blɔk we gɛt kɔnɛkt link fɔ wi pej, we de mek link dɛn at fɔ mis ɛn izi fɔ skel—ɔl dis de gi big hit eria dɛn. Dɛn bil pejeshɔn wit list HTML ɛlimɛnt dɛn so dat di wan dɛn we de rid di skrin go ebul fɔ anɔys di nɔmba fɔ di link dɛn we de. Yuz wan wrap <nav>ɛlimɛnt fɔ no am as nevigishɔn sɛkshɔn fɔ skrin rida ɛn ɔda ɛtɛknɔlɔji dɛn we de ɛp.
Apat frɔm dat, bikɔs i go mɔs bi se pej dɛn gɛt mɔ pas wan pat pan dɛn kayn nevigishɔn sɛkshɔn dɛn de, i fayn fɔ gi wan diskrɔtif aria-labelfɔ di <nav>fɔ sho wetin i want fɔ du. Fɔ ɛgzampul, if dɛn yuz di pej pat fɔ go bitwin wan sɛt fɔ di tin dɛn we dɛn dɔn fɛn, wan rayt lɛbl kin bi aria-label="Search results pages".
We yu de wok wit aykɔn dɛn
Yu de luk fɔ yuz aykɔn ɔ simbul insay di ples fɔ tɛks fɔ sɔm pej link dɛn? Mek shɔ se yu gi di rayt skrin rida sɔpɔt wit ariaatribyut dɛn.
Disabled ɛn aktif stet dɛn
Pejin link dɛn kin kɔstɔmayt fɔ difrɛn tin dɛn. Yuz .disabledfɔ link dɛn we tan lɛk se yu nɔ go ebul fɔ klik ɛn .activefɔ sho di pej we yu de yuz naw.
Wail di .disabledklas de yuz pointer-events: nonefɔ tray fɔ disable di link funkshɔnaliti fɔ <a>s, da CSS prɔpati de nɔ standad yet ɛn i nɔ de akɔn fɔ kibɔd nevigishɔn. As a so, yu fɔ ad ɔltɛm tabindex="-1"pan link dɛn we nɔ de wok ɛn yuz kɔstɔm JavaSkript fɔ fulɔp fɔ disable dɛn wok.
Yu kin opshɔnali swap aut aktif ɔ disabled ankɔ dɛn fɔ <span>, ɔ ɔmit di anka insay di kes fɔ di prɛv/nɛks aro dɛn, fɔ pul di klik funkshɔnaliti ɛn fɔ mek di kibɔd nɔ pe atɛnshɔn we yu de kip di stayl dɛn we yu want.
Sayz fɔ di sayz
Fans big ɔ smɔl pejineshɔn? Ad .pagination-lgɔ .pagination-smfɔ ɔda saiz dɛn.