Skip to content

Commit

Permalink
Checkboxes skal alltid være skjult. Bruker klasse i stedet for å styl…
Browse files Browse the repository at this point in the history
…e direkte på elementet.
  • Loading branch information
Glenn A. Brownlee committed Sep 14, 2015
1 parent e65e815 commit 373edef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
4 changes: 0 additions & 4 deletions examples/examples.less
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@
}
}

.input-group {
margin-bottom: 1rem;
}

.form-label {
&:extend(h4);
display: block;
Expand Down
14 changes: 7 additions & 7 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -307,20 +307,20 @@ <h3>Check box</h3>
What colors do you like on unicorns?
</label>
<fieldset id="checkbox-ibf1">
<input class="input-field"
<input class="hidden-checkbox"
type="checkbox"
name="unicorncolors"
value="yellow"
id="unicorncolors-1"
checked>
<label class="check-box" for="unicorncolors-1">Yellow</label>
<input class="input-field"
<input class="hidden-checkbox"
type="checkbox"
name="unicorncolors"
value="purple"
id="unicorncolors-2">
<label class="check-box" for="unicorncolors-2">Purple</label>
<input class="input-field"
<input class="hidden-checkbox"
type="checkbox"
name="unicorncolors"
value="white"
Expand All @@ -334,20 +334,20 @@ <h3>Check box</h3>
Favorite unicorn foods?
</label>
<fieldset id="checkbox-inline-ibf1">
<input class="input-field"
<input class="hidden-checkbox"
type="checkbox"
name="unicornfood"
value="apples"
id="unicornfood-1"
checked>
<label class="check-box -inline" for="unicornfood-1">Apples</label>
<input class="input-field"
<input class="hidden-checkbox"
type="checkbox"
name="unicornfood"
value="banans"
id="unicornfood-2">
<label class="check-box -inline" for="unicornfood-2">Bananas</label>
<input class="input-field"
<input class="hidden-checkbox"
type="checkbox"
name="unicornfood"
value="oatmeal"
Expand All @@ -358,7 +358,7 @@ <h3>Check box</h3>

<h4>Eksempelkode</h4>
<code class="code-block">
&lt;input class=&quot;input-field&quot;
&lt;input class=&quot;hidden-checkbox&quot;
type=&quot;checkbox&quot;
name=&quot;unicornfood&quot;
value=&quot;apples&quot;
Expand Down
2 changes: 1 addition & 1 deletion less/components/check-box.less
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
}
}

input[type="checkbox"] {
.hidden-checkbox {
position: absolute;
opacity: 0;
height: 0;
Expand Down

0 comments on commit 373edef

Please sign in to comment.