Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 7727341

Browse files
bekosajoslin
authored andcommitted
demo(buttons): use labels instead of buttons for groups
* Align with BS3 markup. Closes #1323. Closes #1482
1 parent 05490d6 commit 7727341

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/buttons/docs/demo.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ <h4>Single toggle</h4>
77
<h4>Checkbox</h4>
88
<pre>{{checkModel}}</pre>
99
<div class="btn-group">
10-
<button type="button" class="btn btn-primary" ng-model="checkModel.left" btn-checkbox>Left</button>
11-
<button type="button" class="btn btn-primary" ng-model="checkModel.middle" btn-checkbox>Middle</button>
12-
<button type="button" class="btn btn-primary" ng-model="checkModel.right" btn-checkbox>Right</button>
10+
<label class="btn btn-primary" ng-model="checkModel.left" btn-checkbox>Left</label>
11+
<label class="btn btn-primary" ng-model="checkModel.middle" btn-checkbox>Middle</label>
12+
<label class="btn btn-primary" ng-model="checkModel.right" btn-checkbox>Right</label>
1313
</div>
1414
<h4>Radio</h4>
1515
<pre>{{radioModel}}</pre>
1616
<div class="btn-group">
17-
<button type="button" class="btn btn-primary" ng-model="radioModel" btn-radio="'Left'">Left</button>
18-
<button type="button" class="btn btn-primary" ng-model="radioModel" btn-radio="'Middle'">Middle</button>
19-
<button type="button" class="btn btn-primary" ng-model="radioModel" btn-radio="'Right'">Right</button>
17+
<label class="btn btn-primary" ng-model="radioModel" btn-radio="'Left'">Left</label>
18+
<label class="btn btn-primary" ng-model="radioModel" btn-radio="'Middle'">Middle</label>
19+
<label class="btn btn-primary" ng-model="radioModel" btn-radio="'Right'">Right</label>
2020
</div>
2121
</div>

0 commit comments

Comments
 (0)