Fix margin for EntityTagsPicker and EntityNamePicker

Signed-off-by: Stephen Glass <stephen@stephen.glass>
This commit is contained in:
Stephen Glass
2024-07-16 20:55:32 -04:00
parent 16cc26c0a2
commit 896a22d26c
3 changed files with 7 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder': patch
---
Fix helper text margin for scaffolder EntityNamePicker and EntityTagsPicker when using outlined textfield
@@ -46,6 +46,7 @@ export const EntityNamePicker = (props: EntityNamePickerProps) => {
margin="normal"
error={rawErrors?.length > 0 && !formData}
inputProps={{ autoFocus }}
FormHelperTextProps={{ margin: 'dense', style: { marginLeft: 0 } }}
/>
);
};
@@ -116,6 +116,7 @@ export const EntityTagsPicker = (props: EntityTagsPickerProps) => {
helperText ??
"Add any relevant tags, hit 'Enter' to add new tags. Valid format: [a-z0-9+#] separated by [-], at most 63 characters"
}
FormHelperTextProps={{ margin: 'dense', style: { marginLeft: 0 } }}
/>
)}
/>