-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Vertical alignment of radio/checkbox broken #27755
Comments
Confirmed, just note that v4.0 is quite old. Also happens with Firefox on Windows 10 for me. Current v4-dev live preview https://twbs-bootstrap4.netlify.com/docs/4.1/components/forms/#default-stacked |
@twbs/css-review: using |
@MartijnCuppens: maybe fix it with JavaScript? ¯_(ツ)_/¯ |
https://stackoverflow.com/questions/306924/checkbox-size-in-html-css |
Fixed form input checkbox alignment twbs#27755
Hello everyone! I don't know if somebody met this issue before but I see the custom controls might have a problem with the alignment with some font-families. Here is an example of "monospace": This extra property should help with it. .custom-control-label {
line-height: $font-size-base * $line-height-base;
} |
I have detected in V4.5 that it is not the only problem; even if we want to place the checkbox in the same row as an input or a Label of normal dimensions; it turns out that the checkbox goes crazy and does not align vertically or horizontally in the markup: |
Going to consider this one a won't fix given v5 revamped our checks and radios to be custom, consistent sizes. |
I'd say this is still a valid 4.x bug and should be tackled @mdo. |
Given how the components are built, there's not really much flexibility here when v4 has two checkbox and radio components. We're absolutely positioning elements that have variable sizes. The only solution really is the custom forms in v4 and our unified forms in v5. You can see the referenced PR from @MartijnCuppens was closed too because it introduced new issues. |
All right, closing then. I wish there was a way to fix this issue in v4 too. |
Bug reports must include:
Even in the default theme it is visible that the radio/checkbox controls are slightly located upwards compared to the label text. It becomes more apparent if you use a custom theme.
The text was updated successfully, but these errors were encountered: