Skip to content

Commit

Permalink
Comment for twbs#12794
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Mar 7, 2014
1 parent f5f4a2d commit e180258
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion less/button-groups.less
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,17 @@


// Checkbox and radio options
//
// In order to support the browser's form validation feedback, powered by the
// `required` attribute, we have to "hide" the inputs via `opacity`. We cannot
// use `display: none;` or `visibility: hidden;` as that also hides the popover.
// This way, we ensure a DOM element is visible to position the popover from.
//
// See https://github.com/twbs/bootstrap/pull/12794 for more.

[data-toggle="buttons"] > .btn > input[type="radio"],
[data-toggle="buttons"] > .btn > input[type="checkbox"] {
opacity: 0;
position: absolute;
z-index: -1;
opacity: 0;
}

0 comments on commit e180258

Please sign in to comment.