Skip to content

Commit

Permalink
πŸ’„ Apply interaction state hover for Range (#2132)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkaltoft authored Mar 28, 2022
1 parent d479ffa commit 2d05a98
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ $knob-shadow: 0 5px 10px 0px rgba(28, 28, 28, 0.3), 0 0 5px 0 rgba(28, 28, 28, 0

ion-range {
@include interaction-state.apply-focus-part($part: 'knob', $shadow: $knob-shadow);
@include interaction-state.apply-hover {
--knob-background: #{interaction-state.get-state-color('white', 's')};
}

--knob-background: #{utils.get-color('white')};
--knob-box-shadow: #{$knob-shadow};
Expand Down Expand Up @@ -45,6 +48,10 @@ ion-range {
padding: 0 $tickWidth * 0.5;
}

&::part(knob) {
@include interaction-state.transition(background);
}

&::part(pin) {
font-size: utils.font-size('xs');
color: var(--pin-color);
Expand Down

0 comments on commit 2d05a98

Please sign in to comment.