-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
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
custom-checkbox broken when not using label next to checkbox #20730
Comments
Could be post it as a JSbin example? |
jsbin supplied with latest bootstrap css https://jsbin.com/kujilitawu/edit?html,css,output |
Why is the text outside of the label? That's what it's for. |
the text "Display Legend" is just the help text, the "label" is the "Legend" text |
In this case your markup is basically wrong. |
How can my markup be wrong? I would like Legend to appear next to the checkbox, and my help text (which says Display Legend) to appear under it... This |
As long as this is not a bug, I'd recommend to ask such questions on sites like stackoverflow or similar. |
wow吼厉害 |
Fixes #20730. This change computes the minimum needed height of what a single line of text would be for the custom checkboxes/radios. This is required because our custom control indicators are positioned absolutely, meaning they cannot be clearfixed or anything like that. Using a computed value means it should scale nicely in case of customization
When reporting a bug, include:
Code to reproduce, as you can see i am using a form, so no need to have a description
I have also tried adding a blank
custom-control-description
class to the html, so it looks like this, and again, still same line up issueIf however, i use
custom-control-description
and ever in a single character, it lines up fine, as you can see hereThe text was updated successfully, but these errors were encountered: