SourceAmakhasi
Amadokhumenti nezibonelo zokubonisa ukuphequlula ukuze kuboniswe uchungechunge lokuqukethwe okuhlobene lukhona kumakhasi amaningi.
Sisebenzisa ibhulokhi enkulu yezixhumanisi ezixhunyiwe ukuze senze amaqebelengwane ethu, okwenza izixhumanisi kube nzima ukuzigeja futhi zikhule kalula—konke lokhu kuhlinzeka ngezindawo ezinkulu ezishayekayo. I-Pagination yakhiwe ngezinto ze-HTML zohlu ukuze abafundi besikrini bakwazi ukumemezela inombolo yezixhumanisi ezitholakalayo. Sebenzisa into egoqayo <nav>
ukuze uyikhombe njengesigaba sokuzulazula kuzifundi zesikrini nobunye ubuchwepheshe obusizayo.
Ngaphezu kwalokho, njengoba amakhasi anengxenye enjalo yokuzulazula engaphezu kweyodwa, kuyatuseka ukunikeza incazelo aria-label
ukuze <nav>
ibonise injongo yayo. Isibonelo, uma ingxenye ye-pagination isetshenziselwa ukuzulazula phakathi kwesethi yemiphumela yosesho, ilebula efanelekile ingaba aria-label="Search results pages"
.
Ingabe ufuna ukusebenzisa isithonjana noma uphawu esikhundleni sombhalo kwezinye izixhumanisi zamaphegina? Qiniseka ukuthi unikeza ukwesekwa okufanele kwesifundi sesikrini ngezibaluli aria
kanye .sr-only
nokusetshenziswa.
Izimo ezikhubazekile nezisebenzayo
Izixhumanisi zamakhasi zingenziwa ngendlela oyifisayo ezimeni ezahlukene. Sebenzisa .disabled
izixhumanisi ezibonakala zingachofozeki kanye .active
nokukhombisa ikhasi lamanje.
Ngenkathi .disabled
ikilasi lisebenzisa pointer-events: none
ukuzama ukukhubaza ukusebenza kwesixhumanisi kwe- <a>
s, leso sici se-CSS asikakamiswa futhi asibali ukuzulazula kwekhibhodi. Kanjalo, kufanele uhlale ungeza tabindex="-1"
kuzixhumanisi ezikhutshaziwe futhi usebenzise i-JavaScript yangokwezifiso ukuze ukhubaze ngokugcwele ukusebenza kwazo.
Ungakwazi ukukhetha ukushintsha amahange asebenzayo noma avaliwe wenze okuthi <span>
, noma ushiye ihange esimweni semicibisholo eyandulele/elandelayo, ukuze ususe ukusebenza kokuchofoza futhi uvimbele ukugxila kwekhibhodi kuyilapho ugcina izitayela ezihlosiwe.
Uyathanda ukuqanjwa okukhudlwana noma okuncane? Engeza .pagination-lg
noma .pagination-sm
osayizi abengeziwe.
Shintsha ukuqondanisa kwezingxenye zephegination ngezinsiza ze- flexbox .