SourceIqembu lezinkinobho
Qoqa uchungechunge lwezinkinobho ndawonye emugqeni owodwa neqembu lezinkinobho, futhi uzinike amandla amakhulu nge-JavaScript.
Goqa uchungechunge lwezinkinobho ngo- .btn
in .btn-group
. Engeza umsakazo we-JavaScript ozikhethela wona kanye nokuziphatha kwesitayela sebhokisi lokuhlola ngezinkinobho zethu ze-plugin .
Qinisekisa ukuthi kulungile role
futhi unikeze ilebula
Ukuze ubuchwepheshe obusizayo (njengezifundi zesikrini) budlulisele ukuthi uchungechunge lwezinkinobho luqoqiwe, kufanele role
kunikezwe isibaluli esifanele. Kumaqembu ezinkinobho, lokhu kuzoba role="group"
, kuyilapho amabha wamathuluzi kufanele abe ne- role="toolbar"
.
Ukwengeza, amaqembu namabha wamathuluzi kufanele anikezwe ilebula ecacile, njengoba iningi lobuchwepheshe obusizayo ngeke likwazise, naphezu kokuba khona kwesibaluli sendima esifanele. Ezibonelweni ezinikezwe lapha, sisebenzisa aria-label
, kodwa ezinye izindlela aria-labelledby
ezingasetshenziswa futhi.
Hlanganisa amasethi amaqembu ezinkinobho ube izinkinobho zamabha wamathuluzi ukuze uthole izingxenye eziyinkimbinkimbi. Sebenzisa amakilasi ezinsiza njengoba kudingeka ukuze uhlukanise amaqembu, izinkinobho, nokunye.
Zizwe ukhululekile ukuhlanganisa amaqembu okokufaka namaqembu ezinkinobho kumabha akho wamathuluzi. Ngokufanayo nesibonelo esingenhla, uzodinga izinsiza ezithile ukuze ubeke izinto ngendlela efanele.
Esikhundleni sokusebenzisa amakilasi okulinganisa izinkinobho kuyo yonke inkinobho eqenjini, vele wengeze .btn-group-*
kweyodwa .btn-group
, okuhlanganisa ngayinye lapho uhlanganisa amaqembu amaningi.
Faka .btn-group
phakathi kokunye .btn-group
uma ufuna amamenyu okwehliswayo ahlanganiswe nochungechunge lwezinkinobho.
Yenza isethi yezinkinobho zibonakale zistakwe ziqondile kunokuba zivundlile. Ukwehliswa kwenkinobho yokuhlukanisa akusekelwa lapha.