Skip to content

Commit

Permalink
fix: only animate radio "dot" appearance (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
josokinas authored Jan 12, 2021
1 parent 2efd5d4 commit 62563cd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/core/src/components/radio/radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
$input-size: helpers.space(2.75);
$input-margin: 1px;
$padding: (helpers.space(6) - $input-size - $input-margin * 2) / 2;
$transition: 0.15s ease-out;

.ods-radio-label {
@include helpers.font('300-regular');
Expand Down Expand Up @@ -55,8 +54,6 @@
padding: $padding;
right: 0;
top: 0;
transition: $transition;
transition-property: background-color, border-color;

&,
&::after,
Expand All @@ -70,15 +67,13 @@
// "outline" (simulating <input />)
&::before {
border: 2px solid helpers.color('border-input');
transition: $transition;
transition-property: background-color, border-color;
}

// "dot" for [checked]
&::after {
background-color: helpers.color('content-action');
transform: scale(0);
transition: $transition;
transition: 0.15s ease-out;
transition-property: transform;
}
}
Expand Down

0 comments on commit 62563cd

Please sign in to comment.