]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
add same accessibility warning from .form-inline to .navbar-form docs 10594/head
authorChris Rebert <code@rebertia.com>
Thu, 12 Sep 2013 05:58:07 +0000 (22:58 -0700)
committerChris Rebert <code@rebertia.com>
Thu, 12 Sep 2013 05:58:07 +0000 (22:58 -0700)
components.html

index 81f0ae8d24894c315bffc7f8de1353847c23a650..f107a1b09f24f6417f2b2fbd51cb77d560862c57 100644 (file)
@@ -1562,6 +1562,11 @@ base_url: "../"
 </form>
 {% endhighlight %}
 
+<div class="bs-callout bs-callout-danger">
+  <h4>Always add labels</h4>
+  <p>Screen readers will have trouble with your forms if you don't include a label for every input. For these inline navbar forms, you can hide the labels using the <code>.sr-only</code> class.</p>
+</div>
+
 
     <h2 id="navbar-buttons">Buttons</h2>
     <p>For buttons not residing in a <code>&lt;form&gt;</code>, add this class to vertically center buttons within a navbar.</p>