Skip to content

Commit 25b9496

Browse files
committed
use Color attributes for range slider handles
1 parent 7078448 commit 25b9496

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/components/rangeslider/constants.js

-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ module.exports = {
4444

4545
handleWidth: 4,
4646
handleRadius: 1,
47-
handleFill: '#fff',
48-
handleStroke: '#666',
4947
handleStrokeWidth: 1,
5048

5149
extraPad: 15

src/components/rangeslider/draw.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,8 @@ function drawGrabbers(rangeSlider, gd, axisOpts, opts) {
482482
x: 0,
483483
width: constants.handleWidth,
484484
rx: constants.handleRadius,
485-
fill: constants.handleFill,
486-
stroke: constants.handleStroke,
485+
fill: Color.background,
486+
stroke: Color.defaultLine,
487487
'stroke-width': constants.handleStrokeWidth,
488488
'shape-rendering': 'crispEdges'
489489
};

0 commit comments

Comments
 (0)