Skip to content

Commit 657d4fd

Browse files
committed
Revert "fix(material/radio): hidden circle visible on some zoom levels (angular#22066)" (angular#23152)
This reverts commit ae968ab.
1 parent c26264f commit 657d4fd

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/material/radio/radio.scss

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,14 @@ $ripple-radius: 20px;
6767

6868
// The inner circle for the radio, shown when checked.
6969
.mat-radio-inner-circle {
70-
$transition-duration: 280ms;
71-
$base-transition: transform ease $transition-duration, background-color ease $transition-duration;
7270
border-radius: 50%;
7371
box-sizing: border-box;
7472
display: block;
7573
height: $size;
7674
left: 0;
7775
position: absolute;
7876
top: 0;
79-
// On some zoom levels the `scale(0.001)` from below can cause the circle to be shown as a 1x1
80-
// dot (see #22036). Ensure that it's hidden using `opacity`. There's a slight transition with
81-
// a long delay so that switching the opacity only applies after the `transform` is done.
82-
opacity: 0;
83-
transition: $base-transition, opacity linear 1ms $transition-duration;
77+
transition: transform ease 280ms, background-color ease 280ms;
8478
width: $size;
8579

8680
// Note: This starts from 0.001 instead of 0, because transitioning from 0 to 0.5 causes
@@ -92,8 +86,6 @@ $ripple-radius: 20px;
9286

9387
.mat-radio-checked & {
9488
transform: scale(0.5);
95-
opacity: 1;
96-
transition: $base-transition;
9789

9890
@include a11y.high-contrast(active, off) {
9991
// Since we use a background color to render the circle, it won't be

0 commit comments

Comments
 (0)