diff --git a/.eslintrc b/.eslintrc index 9535a971dd8..980edc7e524 100644 --- a/.eslintrc +++ b/.eslintrc @@ -87,7 +87,11 @@ "ignoreNonDOM": true } ], - "jsx-a11y/no-static-element-interactions": "off" + "jsx-a11y/no-static-element-interactions": "off", + "jsx-a11y/label-has-associated-control": [ "error", { + "controlComponents": ["NumberInput"], + "depth": 2 + }] } } ] diff --git a/public/app/core/components/OptionsUI/slider.tsx b/public/app/core/components/OptionsUI/slider.tsx index be4d46de1fd..a668a66868e 100644 --- a/public/app/core/components/OptionsUI/slider.tsx +++ b/public/app/core/components/OptionsUI/slider.tsx @@ -96,7 +96,7 @@ export const SliderValueEditor: React.FC {/** Slider tooltip's parent component is body and therefore we need Global component to do css overrides for it. */} -
+
+ ); };