Skip to content

Commit

Permalink
Fix UAs required message position on grouped radio buttons
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Demian Ferreiro committed Feb 19, 2014
1 parent 25d047d commit ca15add
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion less/button-groups.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit ca15add

Please sign in to comment.