Skip to content

Commit

Permalink
Update example of a single checkbox to use the new style
Browse files Browse the repository at this point in the history
- Rename the snippet
- Remove the text about large hit areas, as this is contradictory
  • Loading branch information
gemmaleigh committed Jan 21, 2017
1 parent f7cf009 commit 957ea2f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
12 changes: 5 additions & 7 deletions app/views/guide_form_elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -234,21 +234,19 @@ <h4 class="heading-small">Stacked checkboxes</h4>
</code>
</pre>

<h4 class="heading-small">Inline checkboxes</h4>
<ul class="list list-bullet text">
<li>large hit areas aren’t always appropriate</li>
<li>only pre-select options if there’s a strong, user-centred reason to</li>
</ul>
<p>
Only pre-select options if there’s a strong, user-centred reason to.
</p>

<div class="example">
<form>
{% include "snippets/form_checkbox_native.html" %}
{% include "snippets/form_checkbox.html" %}
</form>
</div>

<pre>
<code class="language-markup">
{% include "snippets/encoded/form_checkbox_native.html" %}
{% include "snippets/encoded/form_checkbox.html" %}
</code>
</pre>

Expand Down
8 changes: 8 additions & 0 deletions app/views/snippets/form_checkbox.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div class="form-group">
<label class="form-label" for="telephone-number">Enter your telephone number</label>
<input class="form-control" id="telephone-number" name="telephone-number" type="text">
</div>
<label class="block-label selection-button-checkbox" for="checkbox-telephone-number">
<input id="checkbox-telephone-number" name="contact-by-text-phone" type="checkbox" value="true">
I need to be contacted using a text phone
</label>
6 changes: 0 additions & 6 deletions app/views/snippets/form_checkbox_native.html

This file was deleted.

0 comments on commit 957ea2f

Please sign in to comment.