Skip to content

Commit

Permalink
Merge pull request #485 from coreui/fix-card-switch
Browse files Browse the repository at this point in the history
fix(cards): outdated switch class, add card-header-actions
  • Loading branch information
xidedix authored Jul 12, 2019
2 parents fc3f93d + 6bd8759 commit 0cb1d81
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- fix: babelrc config
- fix: missing favicon link
- fix: readme links
- fix(cards): outdated switch class, add card-header-actions
- chore(deps): bump lodash to 4.17.14

##### dependencies update
Expand Down
19 changes: 12 additions & 7 deletions src/base/cards.html
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,12 @@
<div class="col-sm-6 col-md-4">
<div class="card">
<div class="card-header">Card with switch
<label class="switch switch-sm switch-text switch-info float-right mb-0">
<input class="switch-input" type="checkbox">
<span class="switch-label" data-on="On" data-off="Off"></span>
<span class="switch-handle"></span>
</label>
<div class="card-header-actions" style="height: 21px;">
<label class="switch switch-sm switch-label switch-info" tabindex="0">
<input type="checkbox" class="switch-input" checked>
<span class="switch-slider" data-checked="On" data-unchecked="Off"></span>
</label>
</div>
</div>
<div class="card-body">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl
ut aliquip ex ea commodo consequat.</div>
Expand All @@ -404,7 +405,9 @@
<div class="col-sm-6 col-md-4">
<div class="card">
<div class="card-header">Card with label
<span class="badge badge-success float-right">Success</span>
<div class="card-header-actions" style="height: 21px;">
<span class="badge badge-success">Success</span>
</div>
</div>
<div class="card-body">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl
ut aliquip ex ea commodo consequat.</div>
Expand All @@ -414,7 +417,9 @@
<div class="col-sm-6 col-md-4">
<div class="card">
<div class="card-header">Card with label
<span class="badge badge-pill badge-danger float-right">42</span>
<div class="card-header-actions" style="height: 21px;">
<span class="badge badge-pill badge-danger">42</span>
</div>
</div>
<div class="card-body">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl
ut aliquip ex ea commodo consequat.</div>
Expand Down

0 comments on commit 0cb1d81

Please sign in to comment.