Skip to content

Commit

Permalink
fix(slider): add cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
BeADre committed Mar 14, 2023
1 parent 9adfdca commit dd82f92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/varlet-ui/src/slider/Slider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
></div>
<div
:class="classes(n('thumb-ripple'), [thumbsProps[item.enumValue].active, n('thumb-ripple--active')])"
v-hover:desktop="(value) => hover(value, item)"
:style="{
background: thumbsProps[item.enumValue].active ? thumbColor : undefined,
}"
Expand Down
5 changes: 3 additions & 2 deletions packages/varlet-ui/src/slider/slider.less
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@

&__thumb {
position: absolute;
cursor: pointer;

&-block {
position: absolute;
Expand All @@ -61,14 +62,14 @@
border-radius: 50%;
transform: translate(-50%, -50%);
transition: background-color 0.25s;
z-index: 1;
background-color: var(--slider-thumb-block-background);
}

&-ripple {
position: absolute;
width: 36px;
height: 36px;
z-index: -1;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
Expand Down Expand Up @@ -128,7 +129,7 @@
background-color: var(--slider-error-color) !important;
}

&-ripple {
&-ripple--active {
background-color: var(--slider-error-color) !important;
}

Expand Down

0 comments on commit dd82f92

Please sign in to comment.