]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix form-control-feedback position when label has sr-only class
authorSean Dwyer <sean.dwyer@gmail.com>
Fri, 11 Apr 2014 00:43:53 +0000 (17:43 -0700)
committerSean Dwyer <sean.dwyer@gmail.com>
Fri, 11 Apr 2014 00:43:53 +0000 (17:43 -0700)
less/forms.less

index 0368c0c0f7560ce4009e0ab7f9a2f7ce10a71e0e..15044cc499faabbfa815dfda6babc08447714bef 100644 (file)
@@ -322,6 +322,12 @@ input[type="checkbox"],
 }
 
 
+// Reposition feedback icon if label is hidden with "screenreader only" state
+.has-feedback label.sr-only ~ .form-control-feedback {
+    top: 0;
+}
+
+
 // Static form control text
 //
 // Apply class to a `p` element to make any string of text align with labels in