Fa button ahorow a ɛtoatoa so bom wɔ line biako so ne button kuw no, na fa JavaScript ma wɔn tumi kɛse.
Nhwɛso titiriw
Fa mu kyekyere bɔtn ahorow a ɛtoatoa so no .btnho .btn-group. Fa ka JavaScript radio a wopɛ ne checkbox style suban ho denam yɛn buttons plugin no so .
Hwɛ sɛ ɛteɛ rolena fa ahyɛnsode bi ma
Sɛnea ɛbɛyɛ a mfiridwuma a ɛboa (te sɛ screen readers) bɛda no adi sɛ wɔaboaboa bɔtn ahorow a ɛtoatoa so ano no, roleɛsɛ sɛ wɔde su a ɛfata ma. Wɔ bɔtn akuw ho no, eyi bɛyɛ role="group", bere a ɛsɛ sɛ adwinnade ahorow no nya role="toolbar".
Bio nso, ɛsɛ sɛ wɔma akuw ne nnwinnade ahorow no agyiraehyɛde a ɛda adi pefee, efisɛ sɛ ɛnte saa a, mmoa mfiridwuma dodow no ara remmɔ amanneɛ, ɛmfa ho sɛ dwuma su a ɛfata wɔ hɔ no. Wɔ nhwɛso ahorow a wɔde ama wɔ ha no mu no, yɛde aria-label, nanso wobetumi de akwan foforo te sɛ nea aria-labelledbywobetumi nso adi dwuma.
Button adwinnade pon
Ka button akuw ahorow bom yɛ button adwinnade ahorow ma nneɛma a ɛyɛ den kɛse. Fa utility classes di dwuma sɛnea ɛho hia na fa space out akuw, buttons, ne nea ɛkeka ho.
Fa ahofadi de nsɛm a wɔde hyɛ mu akuw ne bɔtn akuw frafra wɔ wo nnwinnade ahorow mu. Te sɛ nhwɛso a ɛwɔ atifi hɔ no, ɛda adi sɛ wubehia utilities binom de, nanso sɛ wobɛma nneɛma ahunmu yiye.
@
@
Sizing a wɔde yɛ nneɛma
Sɛ anka wode button sizing classes bedi dwuma wɔ button biara a ɛwɔ kuw bi mu no, fa ka .btn-group-*biara ho kɛkɛ .btn-group, a emu biara ka ho bere a woreyɛ nesting akuw pii no.
Nesting a wɔde yɛ buw
Fa a .btn-groupto foforo mu .btn-groupbere a wopɛ sɛ wode dropdown menus frafra button ahorow a ɛtoatoa so no.