Skip to content

Commit

Permalink
fix(slider): disabled slider no longer displays pressed handle color …
Browse files Browse the repository at this point in the history
…when pressed

PiperOrigin-RevId: 527733231
  • Loading branch information
material-web-copybara authored and Copybara-Service committed Apr 28, 2023
1 parent 04d3496 commit 4c229d9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions slider/lib/_slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,11 @@ $_md-sys-shape: tokens.md-sys-shape-values();
background: var(--_hover-handle-color);
}

input.b:active ~ .handleContainerPadded .handle.b > .handleNub,
input.a:active ~ .handleContainerPadded .handle.a > .handleNub {
background: var(--_pressed-handle-color);
:host(:not([disabled])) {
input.b:active ~ .handleContainerPadded .handle.b > .handleNub,
input.a:active ~ .handleContainerPadded .handle.a > .handleNub {
background: var(--_pressed-handle-color);
}
}

.onTop.isOverlapping {
Expand Down

0 comments on commit 4c229d9

Please sign in to comment.