Skip to content

Commit 3403d77

Browse files
Update color
1 parent ba7b621 commit 3403d77

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/x-charts-pro/src/ChartZoomSlider/internals/ChartAxisZoomSlider.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const BackgroundRect = styled('rect')(({ theme }) => ({
2727
fill:
2828
theme.palette.mode === 'dark'
2929
? (theme.vars || theme).palette.grey[800]
30-
: (theme.vars || theme).palette.grey[400],
30+
: (theme.vars || theme).palette.grey[300],
3131
},
3232
}));
3333

@@ -127,7 +127,6 @@ export function ChartAxisZoomSlider({ axisDirection, axisId }: ChartZoomSliderPr
127127
ry={ZOOM_SLIDER_BACKGROUND_SIZE / 2}
128128
/>
129129
<ChartAxisZoomSliderSpan
130-
size={ZOOM_SLIDER_FOREGROUND_SIZE}
131130
zoomData={zoomData}
132131
axisId={axisId}
133132
axisDirection={axisDirection}
@@ -138,13 +137,11 @@ export function ChartAxisZoomSlider({ axisDirection, axisId }: ChartZoomSliderPr
138137
}
139138

140139
function ChartAxisZoomSliderSpan({
141-
size,
142140
axisId,
143141
axisDirection,
144142
zoomData,
145143
reverse,
146144
}: {
147-
size: number;
148145
axisId: AxisId;
149146
axisDirection: 'x' | 'y';
150147
zoomData: ZoomData;
@@ -341,7 +338,7 @@ function ChartAxisZoomSliderSpan({
341338
previewX = (zoomData.start / 100) * drawingArea.width;
342339
previewY = 0;
343340
previewWidth = (drawingArea.width * (zoomData.end - zoomData.start)) / 100;
344-
previewHeight = size;
341+
previewHeight = ZOOM_SLIDER_FOREGROUND_SIZE;
345342

346343
startHandleX = (zoomData.start / 100) * drawingArea.width;
347344
startHandleY = 0;
@@ -360,7 +357,7 @@ function ChartAxisZoomSliderSpan({
360357
} else {
361358
previewX = 0;
362359
previewY = drawingArea.height - (zoomData.end / 100) * drawingArea.height;
363-
previewWidth = size;
360+
previewWidth = ZOOM_SLIDER_FOREGROUND_SIZE;
364361
previewHeight = (drawingArea.height * (zoomData.end - zoomData.start)) / 100;
365362

366363
startHandleX = 0;

0 commit comments

Comments
 (0)