mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Comment for #12794
This commit is contained in:
parent
f5f4a2da78
commit
e180258b60
@ -220,9 +220,17 @@
|
|||||||
|
|
||||||
|
|
||||||
// Checkbox and radio options
|
// 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="radio"],
|
||||||
[data-toggle="buttons"] > .btn > input[type="checkbox"] {
|
[data-toggle="buttons"] > .btn > input[type="checkbox"] {
|
||||||
opacity: 0;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user