]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Expand advice about adding labels
authorPatrick H. Lauke <redux@splintered.co.uk>
Sun, 7 Dec 2014 15:11:28 +0000 (15:11 +0000)
committerPatrick H. Lauke <redux@splintered.co.uk>
Sun, 7 Dec 2014 20:56:37 +0000 (20:56 +0000)
Harmonizing this with same advice given for CSS inline forms

docs/_includes/components/navbar.html

index c8107c017a928fbd01f08e8e7346d1e8ae81cb3d..6cd731ac6ce812e99473a605311e5ac2b20859ea 100644 (file)
 
   <div class="bs-callout bs-callout-warning" id="callout-navbar-form-labels">
     <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>
+    <p>Screen readers will have trouble with your forms if you don't include a label for every input. For these inline forms, you can hide the labels using the <code>.sr-only</code> class. There are further alternative methods of providing a label for assistive technologies, such as the <code>aria-label</code>, <code>aria-labelledby</code> or <code>title</code> attribute. If none of these is present, screen readers may resort to using the <code>placeholder</code> attribute, if present, but note that use of <code>placeholder</code> as a replacement for other labelling methods is not advised.</p>
   </div>