Skip to content
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

Gap between checkbox/radio and it's label where clicking doesn't work #13003

Closed
ds125v opened this issue Mar 10, 2014 · 2 comments
Closed

Gap between checkbox/radio and it's label where clicking doesn't work #13003

ds125v opened this issue Mar 10, 2014 · 2 comments

Comments

@ds125v
Copy link

ds125v commented Mar 10, 2014

When using the mouse to click on a checkbox/radio button you can click on the checkbox/radio button itself, or you can click on the label that is wrapped around the checkbox/radio button.

However in Bootstrap 3, unlike in version 2.3, there is a tiny gap between the two where you can click and nothing happens.

You can see this behaviour on most of the example forms with checkboxes or radio buttons, though it doesn't happen on the inline forms or on the inline-checkboxes due to their slightly different styles.

http://getbootstrap.com/css/#forms

I think it's something to do with interaction between display: inline on the label, and float: left and negative left margin on the input itself.

@juthilo juthilo added this to the v3.2.0 milestone Mar 10, 2014
@mdo mdo mentioned this issue Mar 10, 2014
@mdo mdo closed this as completed in a83ca38 Mar 10, 2014
@mdo
Copy link
Member

mdo commented Mar 10, 2014

Solid bug. Fixed with some CSS changes to rearrange the padding and what not.

mdo added a commit that referenced this issue Jun 11, 2014
stempler pushed a commit to stempler/bootstrap that referenced this issue Nov 4, 2014
…rom the surrounding div to the label to remove the no-click deadzone caused by negative margin
stempler pushed a commit to stempler/bootstrap that referenced this issue Nov 4, 2014
…radio line-height problems that were introduced after twbs#13003
@covecreekjeremy
Copy link

covecreekjeremy commented Jun 17, 2024

This reproduces in Bootstrap 5.3.3 for me - aha I see there isn't a fix coming this time: #35265

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants