diff --git a/public/app/core/components/OptionsUI/slider.tsx b/public/app/core/components/OptionsUI/slider.tsx index 1ccd2470f81..c681adfc40e 100644 --- a/public/app/core/components/OptionsUI/slider.tsx +++ b/public/app/core/components/OptionsUI/slider.tsx @@ -131,7 +131,7 @@ function getTextWidth(text: string, font: string): number | null { const getStylesSlider = (theme: GrafanaTheme2, width: number) => { return { numberInputWrapper: css` - margin-left: 10px; + margin-left: ${theme.spacing(3)}; max-height: 32px; max-width: ${width}px; min-width: ${width}px;