From 1291b60bbee0e5027eeafc5172ecf1febcb6d1a8 Mon Sep 17 00:00:00 2001 From: Alex Khomenko Date: Fri, 11 Apr 2025 15:32:02 +0300 Subject: [PATCH] Checkbox: Add z-index to description (#103847) * Checkbox: Add z-index to description * Add comment --- packages/grafana-ui/src/components/Forms/Checkbox.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/grafana-ui/src/components/Forms/Checkbox.tsx b/packages/grafana-ui/src/components/Forms/Checkbox.tsx index 3e5e2693f80..fa3f9222b71 100644 --- a/packages/grafana-ui/src/components/Forms/Checkbox.tsx +++ b/packages/grafana-ui/src/components/Forms/Checkbox.tsx @@ -212,6 +212,8 @@ export const getCheckboxStyles = (theme: GrafanaTheme2, invalid = false) => { gridRowStart: 2, lineHeight: theme.typography.bodySmall.lineHeight, marginTop: 0 /* The margin effectively comes from the top: -2px on the label above it */, + // Enable interacting with description when checkbox is disabled + zIndex: 1, }) ), };