RadioButton: Fixed line-height

This commit is contained in:
Torkel Ödegaard 2021-04-16 15:23:12 +02:00
parent 733bb45172
commit 5d1ec39224

View File

@ -93,7 +93,7 @@ const getRadioButtonStyles = stylesFactory((theme: GrafanaTheme, size: RadioButt
font-size: ${fontSize}; font-size: ${fontSize};
height: ${theme.v2.spacing(height)}; height: ${theme.v2.spacing(height)};
// Deduct border from line-height for perfect vertical centering on windows and linux // Deduct border from line-height for perfect vertical centering on windows and linux
line-height: ${theme.v2.spacing.gridSize * height - 2}px; line-height: ${theme.v2.spacing(height)};
color: ${textColor}; color: ${textColor};
padding: ${theme.v2.spacing(0, padding)}; padding: ${theme.v2.spacing(0, padding)};
border-radius: ${theme.v2.shape.borderRadius()}; border-radius: ${theme.v2.shape.borderRadius()};