Skip to content

Commit 43ed4ac

Browse files
Update toolbar color. Fix unit test
1 parent 4881c39 commit 43ed4ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/x-charts-pro/src/internals/plugins/useChartProZoom/calculateZoom.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function calculateZoom<T extends Readonly<Pick<ZoomData, 'start' | 'end'>
2525
if (delta > 0) {
2626
delta = Math.min(delta, (span - minSpan) / 2);
2727
} else {
28-
delta = Math.min(delta, (maxSpan - span) / 2);
28+
delta = Math.max(delta, (span - maxSpan) / 2);
2929
}
3030

3131
return {

packages/x-charts/src/Toolbar/Toolbar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const ToolbarRoot = styled('div', {
1313
padding: theme.spacing(0.5),
1414
minHeight: 44,
1515
boxSizing: 'border-box',
16-
border: `1px solid ${(theme.vars || theme).palette.grey[300]}`,
16+
border: `1px solid ${(theme.vars || theme).palette.divider}`,
1717
borderRadius: 4,
1818
}));
1919

0 commit comments

Comments
 (0)