app/frameworks/twitter/bootstrap/button-groups.less in less-rails-bootstrap-3.1.1.1 vs app/frameworks/twitter/bootstrap/button-groups.less in less-rails-bootstrap-3.2.0
- old
+ new
@@ -18,11 +18,11 @@
&.active {
z-index: 2;
}
&:focus {
// Remove focus outline when dropdown JS adds it after closing the menu
- outline: none;
+ outline: 0;
}
}
}
// Prevent double borders when buttons are next to each other
@@ -214,13 +214,27 @@
width: 1%;
}
> .btn-group .btn {
width: 100%;
}
+
+ > .btn-group .dropdown-menu {
+ left: auto;
+ }
}
// 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"] {
- display: none;
+ position: absolute;
+ z-index: -1;
+ .opacity(0);
}