Skip to content

Commit

Permalink
fix(comp:radio): radio dot size and position shouldn't be constant (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed Oct 7, 2023
1 parent 430c740 commit 840eefe
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/components/radio/style/index.less
Expand Up @@ -50,12 +50,13 @@
border-radius: 50%;
transition: all var(--ix-transition-duration-fast) var(--ix-ease-in-out);

@dot-size: 8px;
&::after {
position: absolute;
top: 3px;
left: 3px;
width: 8px;
height: 8px;
top: calc(50% - @dot-size / 2);
left: calc(50% - @dot-size / 2);
width: @dot-size;
height: @dot-size;
border-radius: 50%;
transform: scale(0);
opacity: 0;
Expand Down

0 comments on commit 840eefe

Please sign in to comment.