Skip to content

Commit

Permalink
Fixes #14642: Add docs mention for blank checkboxes and radios
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Sep 19, 2014
1 parent 75204ae commit 642fbf7
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/_includes/css/forms.html
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,35 @@ <h4>Inline checkboxes and radios</h4>
<label class="radio-inline">
<input type="radio" name="inlineRadioOptions" id="inlineRadio3" value="option3"> 3
</label>
{% endhighlight %}

<h4>Checkboxes and radios without labels</h4>
<p>Should you have no text within the <code>&lt;label&gt;</code>, the input is positioned as you'd expect. <strong>Currently only works on non-inline checkboxes and radios.</strong></p>
<div class="bs-example">
<form role="form">
<div class="checkbox">
<label>
<input type="checkbox" id="blankCheckbox" value="option1">
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="blankRadio" id="blankRadio1" value="option1">
</label>
</div>
</form>
</div>
{% highlight html %}
<div class="checkbox">
<label>
<input type="checkbox" id="blankCheckbox" value="option1">
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="blankRadio" id="blankRadio1" value="option1">
</label>
</div>
{% endhighlight %}

<h3>Selects</h3>
Expand Down

0 comments on commit 642fbf7

Please sign in to comment.