Skip to content

Commit

Permalink
fix(chore): code lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ygatesoupe committed Sep 7, 2016
1 parent 86ef423 commit d8caba5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions docs-orange/components/orange-switches.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ Default color is brand primary. Success color is also supported, use `.success`
<div class="form-group row o-switch">
<label for="checkbox3" class="form-control-label col-md-3 col-xs-8">Success</label>
<input class="checkbox success sr-only" id="checkbox3" type="checkbox"/>
<div for="checkbox3" class="toggle form-control-label col-xs-3" aria-hidden="true">
<label for="checkbox3" class="toggle form-control-label col-xs-3" aria-hidden="true">
<span class="on icon-checkbox-tick"></span>
<span class="off icon-delete"></span>
</div>
</label>
</div>
{% endexample %}

Expand All @@ -53,10 +53,10 @@ Finally use .rounded class on `.toggle` element to get rounded switch alternate
<div class="form-group row o-switch">
<label for="checkbox4" class="form-control-label col-md-3 col-xs-8">Rounded</label>
<input class="checkbox success sr-only" id="checkbox4" type="checkbox" checked/>
<div for="checkbox4" class="toggle rounded form-control-label col-xs-3" aria-hidden="true">
<label for="checkbox4" class="toggle rounded form-control-label col-xs-3" aria-hidden="true">
<span class="on">On</span>
<span class="off">Off</span>
</div>
</label>
</div>
{% endexample %}

Expand Down
6 changes: 3 additions & 3 deletions scss/_o-buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,6 @@ fieldset[disabled] a.btn {
}
}

&.rounded .on {
color: #000;
}
&.rounded .on {
color: #000;
}
6 changes: 3 additions & 3 deletions scss/_o-switches.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@

.on {
color: #000;
}

&.icon-checkbox-tick {
color: white;
}
.on.icon-checkbox-tick {
color: #fff;
}
}
}
Expand Down

0 comments on commit d8caba5

Please sign in to comment.