Skip to content

Commit

Permalink
Adjust poisition of swal2-label stylying for radio
Browse files Browse the repository at this point in the history
Previous code was adding the radio control also for checkboxes
  • Loading branch information
gverni committed Jun 20, 2019
1 parent 9e342dd commit 76aacc2
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions material-ui/material-ui.scss
Expand Up @@ -79,23 +79,25 @@ $swal2-close-button-hover-color: $swal2-close-button-color;
label {
position: relative; // Create a new containing block
}
}

.swal2-label {
padding-left: .2em;

&::before {
position: absolute;
top: 0;
left: 0;
width: 18px;
height: 18px;
border: 2px solid $material-ui-disabled;
border-radius: 100%;
content: '';
.swal2-label {
padding-left: .2em;

&::before {
position: absolute;
top: 0;
left: 0;
width: 18px;
height: 18px;
border: 2px solid $material-ui-disabled;
border-radius: 100%;
content: '';
}
}
}



[type='radio'] {
&:hover + .swal2-label {
&::before {
Expand Down

0 comments on commit 76aacc2

Please sign in to comment.