From 458cb6944beb7bfa65c12c6b20387757969617ba Mon Sep 17 00:00:00 2001 From: Sean Dwyer Date: Fri, 11 Apr 2014 15:30:51 -0700 Subject: [PATCH] Add documentation for using optional icons with sr-only labels --- docs/_includes/css/forms.html | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) 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-*.

-- 2.47.2