Skip to content

Commit

Permalink
fix second radio issue safari
Browse files Browse the repository at this point in the history
  • Loading branch information
fbohz committed Jun 29, 2020
1 parent 6ac2bd0 commit f94b1d2
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
5 changes: 4 additions & 1 deletion museo-demo/css/style.comp.css
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,10 @@ body {
opacity: 0;
transition: opacity .2s; }

.form__radio-input:checked ~ .form__radio-label .form__radio-button::after {
.form__radio-input:checked + .form__radio-label {
background: transparent; }

.form__radio-input:checked + .form__radio-label .form__radio-button::after {
opacity: 1; }

.popup {
Expand Down
5 changes: 4 additions & 1 deletion museo-demo/css/style.concat.css
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,10 @@ body {
opacity: 0;
transition: opacity .2s; }

.form__radio-input:checked ~ .form__radio-label .form__radio-button::after {
.form__radio-input:checked + .form__radio-label {
background: transparent; }

.form__radio-input:checked + .form__radio-label .form__radio-button::after {
opacity: 1; }

.popup {
Expand Down
2 changes: 1 addition & 1 deletion museo-demo/css/style.css

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions museo-demo/css/style.prefix.css

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion museo-demo/sass/components/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@

&__radio-input {
display: none;
// opacity: 0;

}

&__radio-label {
Expand Down Expand Up @@ -100,7 +102,11 @@
}
}

&__radio-input:checked ~ &__radio-label &__radio-button::after {
&__radio-input:checked + &__radio-label {
background: transparent;
}

&__radio-input:checked + &__radio-label &__radio-button::after {
opacity: 1;
}
}

0 comments on commit f94b1d2

Please sign in to comment.