]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix UAs required message position on grouped radio buttons 12794/head
authorDemian Ferreiro <demian@sumavisos.com>
Wed, 19 Feb 2014 19:45:28 +0000 (16:45 -0300)
committerDemian Ferreiro <demian@sumavisos.com>
Wed, 19 Feb 2014 20:30:55 +0000 (17:30 -0300)
Instead of not rendering the element at all with display:none, use opacity:0 and z-index:-1 so the radio element has a defined position on the document and user agents can show the required message in the right place.

less/button-groups.less

index 27eb796b890a53b55b5033b037b99c802c42fb11..afeb707162f9da3f24e8c1adca8bdf0c095832f6 100644 (file)
 // Checkbox and radio options
 [data-toggle="buttons"] > .btn > input[type="radio"],
 [data-toggle="buttons"] > .btn > input[type="checkbox"] {
-  display: none;
+  opacity: 0;
+  position: absolute;
+  z-index: -1;
 }