]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Update markup for buttons in an input group to separate the button from the wrapper...
authorGeoff Kimball <geoff@zurb.com>
Mon, 30 Nov 2015 23:03:53 +0000 (15:03 -0800)
committerGeoff Kimball <geoff@zurb.com>
Mon, 30 Nov 2015 23:04:10 +0000 (15:04 -0800)
docs/pages/forms.md
scss/forms/_input-group.scss

index e7e153967a4096847677945bbf9832b88c5ab5a1..a04d1b0bc389c9505e4e6a6b90ecbbe111459c9c 100644 (file)
@@ -189,13 +189,15 @@ To attach extra text or controls to the left or right of an input field, wrap th
 
 - `.input-group-field` on the text field.
 - `.input-group-label` on a text label.
-- `.input-group-button` on a button.
+- `.input-group-button` on a button. **Place the button inside this wrapper.**
 
 ```html_example
 <div class="input-group">
   <span class="input-group-label">$</span>
-  <input class="input-group-field" type="url">
-  <a class="input-group-button button">Submit</a>
+  <input class="input-group-field" type="number">
+  <div class="input-group-button">
+    <input type="submit" class="button" value="Submit">
+  </div>
 </div>
 ```
 
index 4ba26c76355e51f91c0c24e2b3ec4893f1a2d0fd..ed2179cfb6ca006f3639fc53a28ea765c0d1ce72 100644 (file)
@@ -66,5 +66,11 @@ $input-prefix-padding: 1rem !default;
     padding-bottom: 0;
     text-align: center;
     width: 1%;
+
+    a,
+    input,
+    button {
+      margin: 0;
+    }
   }
 }