From 09a0c1e1bb25dbeacc139bf38f2c57ce55d60a4a Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Wed, 24 May 2023 10:52:21 +0100 Subject: [PATCH] Checkbox: Fix extraneous right hand margin when no label is present (#68885) * remove explicit grid columns, let it automatically work it out * restore position: relative; --- packages/grafana-ui/src/components/Forms/Checkbox.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/grafana-ui/src/components/Forms/Checkbox.tsx b/packages/grafana-ui/src/components/Forms/Checkbox.tsx index af19c3675f6..498661949ab 100644 --- a/packages/grafana-ui/src/components/Forms/Checkbox.tsx +++ b/packages/grafana-ui/src/components/Forms/Checkbox.tsx @@ -68,8 +68,6 @@ export const getCheckboxStyles = stylesFactory((theme: GrafanaTheme2) => { display: inline-grid; align-items: center; column-gap: ${theme.spacing(labelPadding)}; - grid-template-columns: auto 1fr; - grid-template-rows: auto auto; position: relative; vertical-align: middle; `,