diff --git a/packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButtonGroup.tsx b/packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButtonGroup.tsx index 20e430a526c..2454124a82e 100644 --- a/packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButtonGroup.tsx +++ b/packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButtonGroup.tsx @@ -75,6 +75,7 @@ export function RadioButtonGroup({ {options.map((opt, i) => { const isItemDisabled = disabledOptions && opt.value && disabledOptions.includes(opt.value); const icon = opt.icon ? toIconName(opt.icon) : undefined; + const hasNonIconPart = Boolean(opt.imgUrl || opt.label || opt.component); return ( ({ fullWidth={fullWidth} ref={value === opt.value ? activeButtonRef : undefined} > - {icon && } + {icon && } {opt.imgUrl && {opt.label}} {opt.label} {opt.component ? : null}