slider icon indicating copy to clipboard operation
slider copied to clipboard

get rid of negative margin for handle

Open pavel06081991 opened this issue 5 years ago • 1 comments

In my project we do not need for .rc-slider-handle to have negative margin. So I use CSS to remove this negative margin. But in this case when you move handle to the end the handle goes beyond the rail. Could you please calculate offset for handle taking account of handle width, paddings and borders?

pavel06081991 avatar May 30 '19 22:05 pavel06081991

Same issue here also. Had to fix with CSS. Here is the fix:

$rc-slider-handle-size: 16px; // Size of your handle ball

.wc-slider__tooltip {
  margin: 0 $rc-slider-handle-size/2;
  width: auto;
}
.rc-slider-rail, .rc-slider-track {
    margin: 0 -#{$rc-slider-handle-size/2};
    width: calc(100% + #{$rc-slider-handle-size});
}

naazim avatar Sep 16 '20 10:09 naazim