From 7ba3b52e65580aa07c118092eb2e3ca9016659c5 Mon Sep 17 00:00:00 2001 From: Alex Khomenko Date: Tue, 31 Oct 2023 09:15:37 +0100 Subject: [PATCH] RadioButton: Fix alignment (#77416) --- .../src/components/Forms/RadioButtonGroup/RadioButton.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButton.tsx b/packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButton.tsx index 9eb267e637f..4009b6039de 100644 --- a/packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButton.tsx +++ b/packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButton.tsx @@ -110,6 +110,7 @@ const getRadioButtonStyles = stylesFactory((theme: GrafanaTheme2, size: RadioBut radioLabel: css({ display: 'flex', alignItems: 'center', + justifyContent: 'center', fontSize, height: `${labelHeight}px`, // Deduct border from line-height for perfect vertical centering on windows and linux