-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
has-feedback on a form-group does not render correctly if the label on the form-group is not specified or removed #12873
Comments
Not labeling your form fields is bad practice to begin with. |
@cvrebert, how abt this
This also has the same output |
FWIW, |
A somewhat interesting use case is given in #12911. |
Yeah, there's no way to know if the label is there or not in a reliable, performant, and non-shitty way. Using a specific override as you need is the only way this scales beyond our initial styles. |
We should document that a label is required. |
* upstream/master: (45 commits) fix twbs#12936 Run `grunt update-shrinkwrap` [email protected] Fixes twbs#12901: Refactors list group active state for use on non-anchors nav Fixes twbs#12848: Account for and document progress bars at 0-3% use full version number in deprecation note clarify deprecation /cc @cvrebert Fixes twbs#12697: Document readonly inputs docs for twbs#12873 grunt after merging twbs#12917 Grunt after merging twbs#12863 grunt Fixes twbs#12868: Enables icon feedback on validation states for large/small inputs. Fixes twbs#12913: Remove scoped media queries from custom xs grid mixins Fixes twbs#12914: Darken immediate children hr elements in jumbotrons Fixes twbs#12916: Don't let .lead resize on viewport change add svg logos to brand guidelines Update csscomb properties. 'colon-spac'e and 'stick-brace' don't take boolean values. grunt ... Conflicts: dist/css/bootstrap.css.map dist/css/bootstrap.min.css
For those using .has-feedback label.sr-only ~ .form-control-feedback {
top: 0;
} This has the benefit of allowing |
This is similarly broken if the label has more than 1 line |
When using the has-feedback class on a form and if the label on the form group is not specified then it does not render correctly.
The above code renders like this.
The text was updated successfully, but these errors were encountered: