Skip to content

Commit

Permalink
Merge pull request #28 from tw15egan/toggle-fix
Browse files Browse the repository at this point in the history
fix(toggle): removes margin from toggle
  • Loading branch information
chrisdhanaraj authored Apr 14, 2017
2 parents 05b0f3b + 5fa009f commit db0f1df
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/toggle/_toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
align-items: center;
transition-duration: $transition--base;
cursor: pointer;
margin: 1rem;
margin: 1rem 0;
}

.bx--toggle__appearance {
Expand Down
16 changes: 14 additions & 2 deletions src/components/toggle/toggle.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,21 @@
</label>
</div>

<fieldset class="bx--fieldset">
<legend class="bx--label">Toggle w/ Label</legend>
<div class="bx--form-item">
<input class="bx--toggle" id="toggle2" type="checkbox">
<label class="bx--toggle__label" for="toggle2">
<span class="bx--toggle__text--left">Off</span>
<span class="bx--toggle__appearance"></span>
<span class="bx--toggle__text--right">On</span>
</label>
</div>
</fieldset>

<div class="bx--form-item">
<input class="bx--toggle" id="toggle2" type="checkbox" disabled>
<label class="bx--toggle__label" for="toggle2">
<input class="bx--toggle" id="toggle3" type="checkbox" disabled>
<label class="bx--toggle__label" for="toggle3">
<span class="bx--toggle__text--left">Off</span>
<span class="bx--toggle__appearance"></span>
<span class="bx--toggle__text--right">On</span>
Expand Down

0 comments on commit db0f1df

Please sign in to comment.