RadioButtons: Updates design and no longer full width in panel edit (#23883)

This commit is contained in:
Torkel Ödegaard 2020-04-25 14:13:44 +02:00 committed by GitHub
parent e505babbf4
commit e23f72b7fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -28,13 +28,13 @@ const getRadioButtonStyles = stylesFactory((theme: GrafanaTheme, size: RadioButt
const c = theme.palette;
const textColor = theme.colors.textSemiWeak;
const textColorHover = theme.colors.text;
const textColorActive = theme.isLight ? c.blue77 : c.blue95;
const textColorActive = theme.colors.textBlue;
const borderColor = theme.colors.border2;
const borderColorHover = theme.colors.border3;
const borderColorActive = theme.isLight ? c.blue77 : c.blue95;
const borderColorActive = theme.colors.border2;
const bg = theme.colors.bodyBg;
const bgDisabled = theme.isLight ? c.gray95 : c.gray15;
const bgActive = theme.isLight ? c.white : c.gray05;
const bgActive = theme.colors.bg2;
const border = `1px solid ${borderColor}`;
const borderActive = `1px solid ${borderColorActive}`;

View File

@ -247,7 +247,7 @@ export const getStandardOptionEditors = () => {
id: 'radio',
name: 'Radio',
description: 'Allows option selection',
editor: props => <RadioButtonGroup {...props} options={props.item.settings?.options} fullWidth />,
editor: props => <RadioButtonGroup {...props} options={props.item.settings?.options} />,
};
const unit: StandardEditorsRegistryItem<string> = {