Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the grey left hand border example for Radios and checkboxes #349

Merged
merged 1 commit into from
Nov 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions app/views/guide_form_elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -277,15 +277,29 @@ <h4 class="heading-small" id="form-toggle-content-radios">
{% include "snippets/form_inset_radios.html" %}
</div>

<div class="panel panel-border-wide text">
<pre>
<code class="language-markup">
{% include "snippets/encoded/form_inset_radios.html" %}
</code>
</pre>

<p class="text">
In the code snippet above, the <code class="language-markup">data-target=""</code> attribute is present on every label, as each option reveals an extra field.
</p>

<div class="text">
<p>
A grey left hand border is used to visually connect the revealed content with the question above.
</p>
</div>

<div class="example">
{% include "snippets/form_inset_panel.html" %}
</div>

<pre>
<code class="language-markup">
<div class="panel panel-border-narrow"></div>
{% include "snippets/encoded/form_inset_panel.html" %}
</code>
</pre>

Expand All @@ -295,16 +309,6 @@ <h4 class="heading-small" id="form-toggle-content-radios">
</p>
</div>

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

<p class="text">
In the code snippet above, the <code class="language-markup">data-target=""</code> attribute is present on every label, as each option reveals an extra field.
</p>

<h4 class="heading-small" id="form-toggle-content-checkboxes">
Checkboxes
</h4>
Expand Down
6 changes: 6 additions & 0 deletions app/views/snippets/form_inset_panel.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div class="form-group">
<div class="panel panel-border-narrow" id="contact-by-text">
<label class="form-label" for="contact-text-message">Mobile phone number</label>
<input class="form-control" name="contact-text-message" type="text" id="contact-text-message">
</div>
</div>