Skip to content

Commit

Permalink
fix(slider): Fix bug where value indicator container took space and c…
Browse files Browse the repository at this point in the history
…ould be hovered over / clicked when hidden.

PiperOrigin-RevId: 345699434
  • Loading branch information
joyzhong authored and Copybara-Service committed Dec 4, 2020
1 parent 1c156d6 commit 832668d
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions packages/mdc-slider/_slider.scss
Expand Up @@ -319,6 +319,7 @@ $_track-inactive-height: 4px;
left: 50%;
position: absolute;
transform: translateX(-50%);
visibility: hidden;
}
}

Expand Down Expand Up @@ -355,13 +356,21 @@ $_track-inactive-height: 4px;
}
}

.mdc-slider__thumb--with-indicator .mdc-slider__value-indicator {
@include feature-targeting.targets($feat-animation) {
transition: animation.enter(transform, 100ms);
.mdc-slider__thumb--with-indicator {
.mdc-slider__value-indicator-container {
@include feature-targeting.targets($feat-structure) {
visibility: visible;
}
}

@include feature-targeting.targets($feat-structure) {
transform: scale(1);
.mdc-slider__value-indicator {
@include feature-targeting.targets($feat-animation) {
transition: animation.enter(transform, 100ms);
}

@include feature-targeting.targets($feat-structure) {
transform: scale(1);
}
}
}

Expand Down

0 comments on commit 832668d

Please sign in to comment.