Source

Ukufinyeleleka

Ukubuka okufushane kwezici ze-Bootstrap kanye nemikhawulo ekudalweni kokuqukethwe okufinyelelekayo.

I-Bootstrap inikeza uhlaka olusebenziseka kalula lwezitayela ezenziwe ngomumo, amathuluzi esakhiwo, nezingxenye ezisebenzisanayo, okuvumela abathuthukisi ukuthi bakhe amawebhusayithi nezinhlelo zokusebenza ezikhangayo ngokubukeka, ezicebile ezisebenzayo, nezifinyeleleka ngaphandle kwebhokisi.

Uhlolojikelele kanye Nemikhawulo

Ukufinyeleleka sekukonke kwanoma iyiphi iphrojekthi eyakhiwe nge-Bootstrap kuncike kakhulu emakhakheni ombhali, isitayela esengeziwe, kanye nombhalo abawufakile. Kodwa-ke, inqobo nje uma lokhu kusetshenziswe ngendlela efanele, kufanele kwenzeke ngokuphelele ukudala amawebhusayithi nezinhlelo zokusebenza nge-Bootstrap egcwalisa i- WCAG 2.0 (A/AA/AAA), Isigaba 508 kanye nezindinganiso zokufinyelela ezifanayo nezimfuneko.

Umaki wesakhiwo

Isitayela nesakhiwo se-Bootstrap singasetshenziswa ezinhlobonhlobo zezakhiwo zokumaka. Le mibhalo ihlose ukunikeza onjiniyela izibonelo ezinhle kakhulu zokubonisa ukusetshenziswa kwe-Bootstrap ngokwayo futhi ibonise umaka we-semantic ofanelekile, okuhlanganisa nezindlela lapho ukukhathazeka okungase kube khona ukufinyeleleka okungasingathwa ngakho.

Izingxenye ezisebenzisanayo

Izingxenye ezisebenzisanayo ze-Bootstrap—njengezingxoxo ze-modal, amamenyu okwehliswayo namathiphu angokwezifiso—ziklanyelwe ukusebenzela ukuthintwa, igundane nabasebenzisi bekhibhodi. Ngokusetshenziswa kwezindima nezimfanelo ze- WAI - ARIA ezifanele , lezi zingxenye kufanele ziqondakale futhi zisebenze kusetshenziswa ubuchwepheshe obusizayo (njengezifundi zesikrini).

Ngenxa yokuthi izingxenye ze-Bootstrap ziklanyelwe ngenhloso ukuthi zibe yijenerikhi, ababhali bangase badinge ukufaka ezinye izindima nezimfanelo ze -ARIA , kanye nokuziphatha kwe-JavaScript, ukuze badlulisele ngokunembe kakhudlwana imvelo nokusebenza kwengxenye yabo. Lokhu kuvame ukuphawulwa embhalweni.

Ukungafani kombala

Imibala eminingi okwamanje eyenza iphalethi emisiwe ye-Bootstrap—esetshenziswa kulo lonke uhlaka lwezinto ezifana nokuhluka kwezinkinobho, ukuhluka kwezixwayiso, izinkomba zokuqinisekisa amafomu—iholela ekuhlukeni kombala okwanele (ngaphansi kwesilinganiso sokungafani sombala se-WCAG 2.0 esingu-4.5:1 ) esinconywayo uma siqhathaniswa ingemuva elikhanyayo. Ababhali bazodinga ukulungisa/ukunweba mathupha le mibala ezenzakalelayo ukuze kuqinisekiswe izilinganiso ezanele zokungafani kombala.

Okuqukethwe okufihliwe ngokubukeka

Okuqukethwe okufanele kufihlwe ngokubonakalayo, kodwa kuhlale kufinyeleleka kubuchwepheshe obusizayo njengezifundi zesikrini, kungenziwa isitayela kusetshenziswa .sr-onlyikilasi. Lokhu kungaba usizo ezimeni lapho ulwazi olwengeziwe olubonakalayo noma izimpawu (njengencazelo eshiwo ngokusetshenziswa kombala) kudingeka futhi zidluliselwe kubasebenzisi abangabuki.

<p class="text-danger">
  <span class="sr-only">Danger: </span>
  This action is not reversible
</p>

Ukuze uthole izilawuli ezisebenzayo ezifihliwe ezibonakalayo, njengezixhumanisi zendabuko "zokweqa", .sr-onlyzingahlanganiswa .sr-only-focusableneklasi. Lokhu kuzoqinisekisa ukuthi isilawuli siyabonakala uma sesigxilile (kubasebenzisi bekhibhodi ababonayo).

<a class="sr-only sr-only-focusable" href="#content">Skip to main content</a>

Ukunyakaza okuncishisiwe

I-Bootstrap ihlanganisa ukusekela prefers-reduced-motionisici semidiya . Kuziphequluli/izindawo ezivumela umsebenzisi ukuthi acacise okuncamelayo ngokunyakaza okuncishisiwe, imiphumela eminingi yokuguqulwa kwe-CSS ku-Bootstrap (isibonelo, uma ingxoxo ye-modal ivuliwe noma ivaliwe) izokhutshazwa. Njengamanje, ukusekelwa kukhawulelwe kuSafari ku-macOS naku-iOS.

Izinsiza ezengeziwe