Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
docs(): make demo checkboxes not go full-width
Browse files Browse the repository at this point in the history
Closes #1338
  • Loading branch information
Marcy Sutton committed Apr 8, 2015
1 parent d5b77bd commit fbed048
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 23 deletions.
45 changes: 25 additions & 20 deletions src/components/checkbox/demoBasicUsage/index.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@

<div ng-controller="AppCtrl">

<md-checkbox ng-model="data.cb1" aria-label="Checkbox 1">
Checkbox 1: {{ data.cb1 }}
</md-checkbox>

<md-checkbox ng-model="data.cb2" aria-label="Checkbox 2" ng-true-value="'yup'" ng-false-value="'nope'" class="md-warn">
Checkbox 2 (md-warn): {{ data.cb2 }}
</md-checkbox>

<md-checkbox ng-disabled="true" aria-label="Disabled checkbox" ng-model="data.cb3">
Checkbox: Disabled
</md-checkbox>

<md-checkbox ng-disabled="true" aria-label="Disabled checked checkbox" ng-model="data.cb4" ng-init="data.cb4=true">
Checkbox: Disabled, Checked
</md-checkbox>

<md-checkbox md-no-ink aria-label="Checkbox No Ink" ng-model="data.cb5" class="md-primary">
Checkbox (md-primary): No Ink
</md-checkbox>
<div>
<md-checkbox ng-model="data.cb1" aria-label="Checkbox 1">
Checkbox 1: {{ data.cb1 }}
</md-checkbox>
</div>
<div>
<md-checkbox ng-model="data.cb2" aria-label="Checkbox 2" ng-true-value="'yup'" ng-false-value="'nope'" class="md-warn">
Checkbox 2 (md-warn): {{ data.cb2 }}
</md-checkbox>
</div>
<div>
<md-checkbox ng-disabled="true" aria-label="Disabled checkbox" ng-model="data.cb3">
Checkbox: Disabled
</md-checkbox>
</div>
<div>
<md-checkbox ng-disabled="true" aria-label="Disabled checked checkbox" ng-model="data.cb4" ng-init="data.cb4=true">
Checkbox: Disabled, Checked
</md-checkbox>
</div>
<div>
<md-checkbox md-no-ink aria-label="Checkbox No Ink" ng-model="data.cb5" class="md-primary">
Checkbox (md-primary): No Ink
</md-checkbox>
</div>
</div>
8 changes: 5 additions & 3 deletions src/components/checkbox/demoBasicUsage/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

body {
padding: 20px;
.checkboxDemo1 div {
clear: both;
}
.checkboxDemo1 md-checkbox {
float: left;
}

0 comments on commit fbed048

Please sign in to comment.