Source

Accessibility

Mutsvakiridzo mupfupi weBootstrap zvimiro uye zvipimo pakugadzirwa kwezvinhu zvinowanika.

Bootstrap inopa iri nyore kushandisa chimiro cheakagadzirira-akagadzirwa masitaera, maturusi ekugadzirisa, uye zvikamu zvinopindirana, zvichibvumira vanogadzira kugadzira mawebhusaiti uye maapplication anoyevedza, anoshanda akapfuma, uye anowanikwa kunze kwebhokisi.

Overview uye Kugumira

Kuwanikwa kwese kwechero purojekiti yakavakwa neBootstrap kunoenderana muchikamu chikuru pane yemunyori markup, yekuwedzera masitaera, uye scripting zvavakabatanidza. Nekudaro, chero izvi zvaitwa nemazvo, zvinofanirwa kunge zvichigoneka kugadzira mawebhusaiti uye maapplication neBootstrap anozadzisa WCAG 2.0 (A/AA/AAA), Chikamu 508 uye zvakafanana zvekuwanikwa zviyero uye zvinodiwa.

Structural markup

Bootstrap's styling uye marongerwo anogona kuiswa kune akasiyana siyana emakapu zvimiro. Zvinyorwa izvi zvine chinangwa chekupa vanogadzira mienzaniso yemhando yepamusoro kuratidza mashandisirwo eBootstrap pachayo uye kuratidza kwakakodzera semantic markup, kusanganisira nzira dzinogona kutariswa zvinonetsa zvekuwanikwa.

Interactive components

Bootstrap's interactive components-senge modal dialogs, dropdown menus and custom tooltips-zvakagadzirirwa kushanda kubata, mouse uye keyboard vashandisi. Kuburikidza nekushandiswa kweakakodzera WAI - ARIA mabasa uye hunhu, izvi zvikamu zvinofanirwa zvakare kunzwisisika uye kushanda uchishandisa anobatsira matekinoroji (akadai semascreen readers).

Nekuti zvinhu zveBootstrap zvakagadzirirwa nemaune kuti zvive zvegeneric, vanyori vangangoda kusanganisa mamwe mabasa eARIA uye hunhu, pamwe nemaitiro eJavaScript, kuti vanyatso buritsa chaiwo hunhu uye kushanda kwechikamu chavo. Izvi zvinowanzoonekwa mune zvinyorwa.

Kusiyana kwemavara

Mazhinji mavara anoumba Bootstrap's default palette - anoshandiswa mukati mehurongwa hwezvinhu zvakaita sekusiyana kwebhatani, mutsauko wekuzivisa, mafomu ekusimbisa zviratidzo-zvinotungamira mukusakwana kwemavara akasiyana (pasi peinokurudzirwa WCAG 2.0 color musiyano reshiyo ye4.5: 1 ) kuseri kwechiedza. Vanyori vanozoda kugadzirisa kana kuwedzera aya mavara ekutanga kuti vave nechokwadi chekusiyana kwemavara.

Zvinoonekwa zvakavanzika zvemukati

Zvemukati zvinofanirwa kunge zvakavanzwa, asi zvichiramba zvichiwanikwa kune zvinobatsira tekinoroji senge screen readers, zvinogona kunyorwa pachishandiswa .sr-onlykirasi. Izvi zvinogona kubatsira mumamiriro ezvinhu apo mamwe mashoko ekuona kana zvirevo (sezvinoreva zvinoratidzwa kuburikidza nekushandiswa kweruvara) zvinodawo kusvitswa kune vasingaone.

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

Kune zvinoonekwa zvakavanzika zvinopindirana zvinodzora, senge zvechinyakare "skip" zvinongedzo, .sr-onlyzvinogona kusanganiswa .sr-only-focusablenekirasi. Izvi zvinozoita kuti hutongi huve hunoonekwa kana hwakatariswa (kune vanoona vashandisi keyboard).

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

Yakaderedzwa kufamba

Bootstrap inosanganisira rutsigiro rweiyo midhiya prefers-reduced-motionchimiro . Mumabhurawuza/zvakatipoteredza zvinobvumira mushandisi kudoma zvavanoda pakufamba kwakaderedzwa, mazhinji ekuchinja kweCSS muBootstrap (semuenzaniso, kana modal dialog yakavhurwa kana kuvharwa) ichavharwa. Parizvino, rutsigiro rwunogumira kuSafari pane macOS uye iOS.

Zvimwe zvekushandisa