Merge pull request #25660 from stephenglass/fix/tag-picker

Fix margin for EntityTagsPicker and EntityNamePicker
This commit is contained in:
Ben Lambert
2024-07-30 09:28:01 +02:00
committed by GitHub
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 text field
@@ -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 } }}
/>
)}
/>