diff options
| author | Demian Ferreiro <[email protected]> | 2014-02-19 16:45:28 -0300 |
|---|---|---|
| committer | Demian Ferreiro <[email protected]> | 2014-02-19 17:30:55 -0300 |
| commit | ca15add174fdd8507699e1ab18591ecb037b4396 (patch) | |
| tree | 51b87aa3a6c56b129dda5c1440a885d806f1d7f4 | |
| parent | 25d047ded4a828f114710f3f1f3af7a4839f96c9 (diff) | |
| download | bootstrap-ca15add174fdd8507699e1ab18591ecb037b4396.tar.xz bootstrap-ca15add174fdd8507699e1ab18591ecb037b4396.zip | |
Fix UAs required message position on grouped radio buttons
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.
| -rw-r--r-- | less/button-groups.less | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/less/button-groups.less b/less/button-groups.less index 27eb796b8..afeb70716 100644 --- a/less/button-groups.less +++ b/less/button-groups.less @@ -222,5 +222,7 @@ // 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; } |
