Skip to content

Commit

Permalink
fix(slider): incorrect draghandle states
Browse files Browse the repository at this point in the history
  • Loading branch information
zhpenkov committed Dec 6, 2024
1 parent 32b3a14 commit 3fc192c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion packages/default/scss/slider/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
);
@include border-radius( 50% );

&:hover {
&:hover,
&.k-hover {
@include fill(
$kendo-slider-draghandle-hover-text,
$kendo-slider-draghandle-hover-bg,
Expand All @@ -39,7 +40,9 @@
);
}

// TODO: remove k-pressed and rely on k-active
&:active,
&.k-active,
&.k-pressed {
@include fill(
$kendo-slider-draghandle-pressed-text,
Expand Down
8 changes: 4 additions & 4 deletions packages/material/scss/slider/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,26 +66,26 @@ $kendo-slider-draghandle-gradient: null !default;

/// The background color of the hovered Slider drag handle.
/// @group slider
$kendo-slider-draghandle-hover-bg: unset !default;
$kendo-slider-draghandle-hover-bg: $kendo-color-primary !default;
/// The text color of the hovered Slider drag handle.
/// @group slider
$kendo-slider-draghandle-hover-text: null !default;
/// The border color of the hovered Slider drag handle.
/// @group slider
$kendo-slider-draghandle-hover-border: unset !default;
$kendo-slider-draghandle-hover-border: $kendo-color-primary !default;
/// The gradient of the hovered Slider drag handle.
/// @group slider
$kendo-slider-draghandle-hover-gradient: null !default;

/// The background color of the active Slider drag handle.
/// @group slider
$kendo-slider-draghandle-pressed-bg: unset !default;
$kendo-slider-draghandle-pressed-bg: $kendo-color-primary !default;
/// The text color of the active Slider drag handle.
/// @group slider
$kendo-slider-draghandle-pressed-text: null !default;
/// The border color of the active Slider drag handle.
/// @group slider
$kendo-slider-draghandle-pressed-border: unset !default;
$kendo-slider-draghandle-pressed-border: $kendo-color-primary !default;
/// The gradient of the active Slider drag handle.
/// @group slider
$kendo-slider-draghandle-pressed-gradient: null !default;
Expand Down

0 comments on commit 3fc192c

Please sign in to comment.