From 45286ebf41a60b0e90c5bf6b39782d9ec7c7553f Mon Sep 17 00:00:00 2001 From: mabashian Date: Thu, 23 Jul 2020 10:43:10 -0400 Subject: [PATCH] Fixes bug where help icon showed up beneath the form label. I believe the labelIcon prop was added in a recent update of PF and is what we should be using. --- .../src/components/FormField/FormField.jsx | 8 +- .../src/components/HostForm/HostForm.jsx | 10 +- .../LaunchPrompt/steps/OtherPromptsStep.jsx | 29 ++-- .../LaunchPrompt/steps/SurveyStep.jsx | 4 +- .../components/Lookup/CredentialLookup.jsx | 2 +- .../Lookup/InstanceGroupsLookup.jsx | 2 +- .../src/components/Lookup/ProjectLookup.jsx | 2 +- .../Application/shared/ApplicationForm.jsx | 24 ++-- .../BecomeMethodField.jsx | 8 +- .../CredentialFormFields/CredentialField.jsx | 8 +- .../CredentialPluginField.jsx | 8 +- .../Inventory/shared/InventorySourceForm.jsx | 10 +- .../InventorySourceSubForms/SCMSubForm.jsx | 10 +- .../InventorySourceSubForms/SharedFields.jsx | 132 +++++++++--------- .../screens/Project/shared/ProjectForm.jsx | 10 +- .../shared/ProjectSubForms/ManualSubForm.jsx | 10 +- .../Template/Survey/SurveyQuestionForm.jsx | 16 ++- .../Template/shared/JobTemplateForm.jsx | 23 ++- .../Template/shared/WebhookSubForm.jsx | 28 ++-- .../shared/WorkflowJobTemplateForm.jsx | 13 +- 20 files changed, 209 insertions(+), 148 deletions(-) diff --git a/awx/ui_next/src/components/FormField/FormField.jsx b/awx/ui_next/src/components/FormField/FormField.jsx index 0efa21887a..68aab35976 100644 --- a/awx/ui_next/src/components/FormField/FormField.jsx +++ b/awx/ui_next/src/components/FormField/FormField.jsx @@ -31,8 +31,10 @@ function FormField(props) { isRequired={isRequired} validated={isValid ? 'default' : 'error'} label={label} + labelIcon={ + + } > -