]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Update abide.md with extra ignore conditions
authorcolinmackinlay <colin.mackinlay@russelleducationtrust.org.uk>
Sat, 31 Dec 2016 14:04:28 +0000 (14:04 +0000)
committerGitHub <noreply@github.com>
Sat, 31 Dec 2016 14:04:28 +0000 (14:04 +0000)
In addition to data-abide-ignore, abide also ignores type="hidden" attribute and in this patch the diabled attribute

docs/pages/abide.md

index 54178b657b18004a5e6a27cfc6615044263d08a5..f17d2169f967c17e4c26520982bd4242d20ae41c 100644 (file)
@@ -33,6 +33,18 @@ These input types create a text field: `text`, `date`, `datetime`, `datetime-loc
       </label>
       <p class="help-text" id="exampleHelpTex">This input is ignored by Abide using `data-abide-ignore`</p>
     </div>
+    <div class="small-12 columns">
+      <label>Disabled!
+        <input type="text" placeholder="You can't use me!" aria-describedby="exampleHelpTex" disabled>
+      </label>
+      <p class="help-text" id="exampleHelpTex">This input is ignored by Abide using `disabled`</p>
+    </div>
+    <div class="small-12 columns">
+      <label>Hidden!
+        <input type="hidden" placeholder="You can't see me!" aria-describedby="exampleHelpTex" >
+      </label>
+      <p class="help-text" id="exampleHelpTex">This input is ignored by Abide using `type="hidden"`</p>
+    </div>
     <div class="small-12 columns">
       <label>Password Required
         <input type="password" id="password" placeholder="yeti4preZ" aria-describedby="exampleHelpText" required >