From: Sean Dwyer Date: Fri, 11 Apr 2014 22:30:51 +0000 (-0700) Subject: Add documentation for using optional icons with sr-only labels X-Git-Tag: v3.2.0~212^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=458cb6944beb7bfa65c12c6b20387757969617ba;p=thirdparty%2Fbootstrap.git Add documentation for using optional icons with sr-only labels --- diff --git a/docs/_includes/css/forms.html b/docs/_includes/css/forms.html index 5a76ce4958..24e07cd257 100644 --- a/docs/_includes/css/forms.html +++ b/docs/_includes/css/forms.html @@ -511,7 +511,7 @@

You can also add optional feedback icons with the addition of .has-feedback and the right icon.

Icons, labels, and input groups

-

Manual positioning of feedback icons is required for inputs without a label and for input groups with an add-on on the right. For inputs without labels, adjust the topvalue. For input groups, adjust the right value to an appropriate pixel value depending on the width of your addon.

+

Manual positioning of feedback icons is required for inputs without a label and for input groups with an add-on on the right. You are strongly encouraged to provide labels for all inputs for accessibility reasons. If you wish to prevent labels from being displayed, hide them with the sr-only class. If you must do without labels, adjust the top value of the feedback icon. For input groups, adjust the right value to an appropriate pixel value depending on the width of your addon.

@@ -550,7 +550,7 @@
{% endhighlight %} -

Optional icons also work on horizontal and inline forms.

+

Optional icons in horizontal and inline forms

@@ -593,6 +593,22 @@ {% endhighlight %} +

Optional icons with hidden .sr-only labels

+
+
+ + + +
+
+{% highlight html %} +
+ + + +
+{% endhighlight %} +

Control sizing

Set heights using classes like .input-lg, and set widths using grid column classes like .col-lg-*.