Source

Ukufikeleleka

Isishwankathelo esifutshane seempawu zeBootstrap kunye nemida ekudalweni komxholo ofikelelekayo.

I-Bootstrap inikezela ngesakhelo ekulula ukusisebenzisa seendlela esele zenziwe, izixhobo zokucwangcisa, kunye namacandelo asebenzisanayo, okuvumela abaphuhlisi ukuba benze iiwebhusayithi kunye nezicelo ezikhangelekayo, ezityebileyo, kwaye zifikeleleke ngaphandle kwebhokisi.

Isishwankathelo kunye neMida

Ukufikeleleka ngokubanzi kwayo nayiphi na iprojekthi eyakhiwe ngeBootstrap ixhomekeke kwinxalenye enkulu kuphawu lombhali, isitayile esongezelelweyo, kunye nokubhalwa kweskripthi abazibandakanyileyo. Nangona kunjalo, ngaphandle kokuba ezi ziphunyezwe ngokuchanekileyo, kufuneka kube nokwenzeka ngokugqibeleleyo ukwenza iiwebhusayithi kunye nezicelo kunye neBootstrap ezalisekisa iWCAG 2.0 (A/AA/AAA), iCandelo 508 kunye nemigangatho efanayo yokufikeleleka kunye neemfuno.

Imarkup yesakhiwo

Isimbo seBootstrap kunye noyilo lunokusetyenziswa kuluhlu olubanzi lwezakhiwo zokuphawula. Olu xwebhu lujolise ekuboneleleni abaphuhlisi ngemizekelo efanelekileyo yokubonisa ukusetyenziswa kweBootstrap ngokwayo kwaye ibonise uphawu olufanelekileyo lwesemantic, kubandakanywa neendlela apho iinkxalabo zofikelelo ezinokuqwalaselwa.

Amacandelo Interactive

Izinto ezisebenzisanayo zeBootstrap-ezinje ngemodal dialogs, dropdown menus and custom tooltips-zenzelwe ukusebenzela ukubamba, imouse kunye nabasebenzisi bebhodi yezitshixo. Ngokusetyenziswa kweendima ezifanelekileyo ze- WAI - ARIA kunye neempawu, la macandelo kufuneka aqonde kwaye asebenziseke kusetyenziswa ubugcisa bokuncedisa (njengabafundi besikrini).

Ngenxa yokuba iinxalenye zeBootstrap ziyilelwe ngenjongo ukuba zenziwe zisebenza ngokufanayo nangaphandle, ababhali banokufuna ukubandakanya ezinye iindima zeARIA kunye neempawu, kunye nokuziphatha kweJavaScript, ukuhambisa ngokuchanekileyo ngakumbi ubume obuchanekileyo kunye nokusebenza kwecandelo labo. Oku kudla ngokuphawulwa kuxwebhu.

Umahluko wombala

Imibala emininzi ngoku eyenza i-palette ye-Bootstrap engagqibekanga—esetyenziswa kuyo yonke isakhelo sezinto ezifana nokwahluka kwamaqhosha, ukwahluka kwezilumkiso, izikhombisi zokuqinisekisa iifom-zikhokelela kumahluko wombala ongonelanga (ngezantsi kwe- WCAG 2.0 yomlinganiselo umahluko wombala we-4.5:1 ) xa isetyenziswa ngokuchaseneyo imvelaphi ekhanyayo. Ababhali kuya kufuneka balungise/bandise le mibala ingagqibekanga ukuze baqinisekise umlinganiselo owaneleyo wemibala.

Umxholo ofihliweyo ngokubonakalayo

Umxholo omele ufihlwe ngokubonakalayo, kodwa uhlale ufikeleleka kwiiteknoloji ezincedisayo ezifana nezifundi zesikrini, zinokubhalwa kusetyenziswa .sr-onlyiklasi. Oku kunokuba luncedo kwiimeko apho ulwazi olongezelelweyo olubonakalayo okanye izikhokelo (ezifana nentsingiselo echazwa ngokusetyenziswa kombala) kufuneka kwakhona zigqithiselwe kubasebenzisi abangabonakaliyo.

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

Ukulawulwa okubonakalayo okufihliweyo okubonakalayo, okufana nekhonkco "ye-skip" yendabuko, .sr-onlyinokudibaniswa .sr-only-focusableneklasi. Oku kuya kuqinisekisa ukuba ulawulo luyabonakala xa sele lugxilile (kubasebenzisi bekhibhodi ababonayo).

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

Isindululo esincitshisiweyo

I-Bootstrap ibandakanya inkxaso yenqaku prefers-reduced-motionleendaba . Kwibhrawuza/kummandla ovumela umsebenzisi ukuba achaze ukhetho lwabo lwesindululo esincitshisiweyo, uninzi lweziphumo zenguqu yeCSS kwiBootstrap (umzekelo, xa imodal dialog ivulwa okanye ivaliwe) iya kucinywa. Okwangoku, inkxaso ilinganiselwe kwiSafari kwi-macOS kunye ne-iOS.

Izibonelelo ezongezelelweyo