feat(form-builder): format field labels with spaces (#27858)

Co-authored-by: Romit <85230081+romitg2@users.noreply.github.com>
This commit is contained in:
Shrey-Sutariya
2026-02-11 11:37:45 +00:00
committed by GitHub
co-authored by Romit
parent dc7b9d91ae
commit b75000ea7b
@@ -1012,12 +1012,13 @@ function VariantFields({
];
const appUiFieldConfig =
fieldTypeConfigVariants.fieldsMap[f.name as keyof typeof fieldTypeConfigVariants.fieldsMap];
return (
<li className={classNames(!isSimpleVariant ? "p-4" : "")} key={f.name}>
{!isSimpleVariant && (
<Label className="flex justify-between">
<span>{`Field ${index + 1}`}</span>
<span className="text-muted">{f.name}</span>
<span className="text-muted">{t(appUiFieldConfig?.defaultLabel || "")}</span>
</Label>
)}
<InputField