Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit a94bd8d

Browse files
joyzhongcopybara-github
authored andcommitted
fix(slider): Use pointer-events: none instead of visibility: hidden to hide the value indicator container. Adding visibility: hidden removes the exit animation since the value indicator is immediately hidden.
PiperOrigin-RevId: 349598927
1 parent b4f5a1c commit a94bd8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/mdc-slider/_slider.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ $_track-inactive-height: 4px;
317317
bottom: $_thumb-ripple-size / 2 + $_thumb-size / 2 +
318318
$_value-indicator-caret-width + 4px;
319319
left: 50%;
320+
pointer-events: none;
320321
position: absolute;
321322
transform: translateX(-50%);
322-
visibility: hidden;
323323
}
324324
}
325325

@@ -359,7 +359,7 @@ $_track-inactive-height: 4px;
359359
.mdc-slider__thumb--with-indicator {
360360
.mdc-slider__value-indicator-container {
361361
@include feature-targeting.targets($feat-structure) {
362-
visibility: visible;
362+
pointer-events: auto;
363363
}
364364
}
365365

0 commit comments

Comments
 (0)