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

.checkbox-single & .radio-single clickable area issue #76

Closed
0xadri opened this issue Feb 10, 2016 · 8 comments
Closed

.checkbox-single & .radio-single clickable area issue #76

0xadri opened this issue Feb 10, 2016 · 8 comments

Comments

@0xadri
Copy link

0xadri commented Feb 10, 2016

When the checkbox/radio-button is without a label (using .checkbox-single or .radio-single accordingly), the clickable area is buggy:

  1. The clickable area is not as big as the icon
  2. The :hover effect switches from cursor to default depending which area of the icon I hover

I think the reason for this is that the input button does not take the whole parent div.

note: I just noticed that the 2nd issue is also happening when the checkbox/radio-button is with a label

ps. testing on Chrome Version 48.0.2564.103 (64-bit)

@0xadri 0xadri mentioned this issue Feb 10, 2016
@gandaldf
Copy link

+1

1 similar comment
@keverw
Copy link

keverw commented Feb 17, 2016

+1

@ahmadbadpey
Copy link

@adrien-be , you can use this:

<div class="checkbox checkbox-danger checkbox-single checkbox-sm">
     <input type="checkbox" name="item_check[]" id="mycheckbox">
     <label for="mycheckbox"></label>
</div>

just create an empty label but has a for referenced to checkbox

@tophopstop
Copy link

+1

1 similar comment
@hesham-faragallah
Copy link

+1

@AndreasHerss
Copy link

+1 for this, i also ave problems with the clickable area not being the full size, this is when im using with labels. bit confusing for the users.

@CyrilMazur
Copy link

+1 same issue, @ahmadbadpey 's solution works although it makes the clickable area larger than it should be. Better too large than too small in that case.

@ChadSikorra
Copy link

While the empty label approach works in most cases, there are some where it doesn't. For example, trying to get this working correctly with bootstrap-table has been a real pain (still can't get it working in the header right because of this).

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