Skip to content

Instantly share code, notes, and snippets.

Revisions

  1. shopifypartners renamed this gist Mar 21, 2017. 1 changed file with 0 additions and 0 deletions.
  2. @stevebosworth stevebosworth revised this gist Nov 18, 2016. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions a11y-form-example.liquid
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    {% form ‘new_comment’, article %}
    {{ form.errors | default_errors }}
    {{ form.errors | default_errors }}

    <label for=”CommentAuthor” class=”hidden-label”>Name</label>
    <input {% if form.errors contains 'author' %}class=”error”{% endif %} type=”text” name=”comment[author]” placeholder=”Name” id=”CommentAuthor” value=”{{ form.author }}”>
    <label for=”CommentAuthor” class=”hidden-label”>Name</label>
    <input {% if form.errors contains 'author' %}class=”error”{% endif %} type=”text” name=”comment[author]” placeholder=”Name” id=”CommentAuthor” value=”{{ form.author }}”>

    <label for=”CommentEmail” class=”hidden-label”>Email</label>
    <input {% if form.errors contains 'email' %}class=”error”{% endif %} type=”email” name=”comment[email]” placeholder=”email” id=”CommentEmail” value=”{{ form.email }}” autocorrect=”off” autocapitalize=”off”>
    <label for=”CommentEmail” class=”hidden-label”>Email</label>
    <input {% if form.errors contains 'email' %}class=”error”{% endif %} type=”email” name=”comment[email]” placeholder=”email” id=”CommentEmail” value=”{{ form.email }}” autocorrect=”off” autocapitalize=”off”>
    {% endform %}
  3. @stevebosworth stevebosworth revised this gist Nov 14, 2016. No changes.
  4. @stevebosworth stevebosworth revised this gist Nov 14, 2016. No changes.
  5. @stevebosworth stevebosworth revised this gist Nov 14, 2016. No changes.
  6. @stevebosworth stevebosworth revised this gist Nov 14, 2016. No changes.
  7. @stevebosworth stevebosworth revised this gist Nov 14, 2016. No changes.
  8. @stevebosworth stevebosworth renamed this gist Nov 14, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  9. @stevebosworth stevebosworth created this gist Nov 14, 2016.
    9 changes: 9 additions & 0 deletions untitled
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    {% form ‘new_comment’, article %}
    {{ form.errors | default_errors }}

    <label for=”CommentAuthor” class=”hidden-label”>Name</label>
    <input {% if form.errors contains 'author' %}class=”error”{% endif %} type=”text” name=”comment[author]” placeholder=”Name” id=”CommentAuthor” value=”{{ form.author }}”>

    <label for=”CommentEmail” class=”hidden-label”>Email</label>
    <input {% if form.errors contains 'email' %}class=”error”{% endif %} type=”email” name=”comment[email]” placeholder=”email” id=”CommentEmail” value=”{{ form.email }}” autocorrect=”off” autocapitalize=”off”>
    {% endform %}