diff --git a/superset-frontend/src/components/Form/LabeledErrorBoundInput.tsx b/superset-frontend/src/components/Form/LabeledErrorBoundInput.tsx index f654c4f5dc925..ac94d947184e3 100644 --- a/superset-frontend/src/components/Form/LabeledErrorBoundInput.tsx +++ b/superset-frontend/src/components/Form/LabeledErrorBoundInput.tsx @@ -77,11 +77,13 @@ const StyledFormGroup = styled('div')` } `; -const infoTooltip = (theme: SupersetTheme) => css` - svg { - vertical-align: bottom; - margin-bottom: ${theme.gridUnit * 0.25}px; - } +const StyledAlignment = styled.div` + display: flex; + align-items: center; +`; + +const StyledFormLabel = styled(FormLabel)` + margin-bottom: 0; `; const LabeledErrorBoundInput = ({ @@ -97,16 +99,14 @@ const LabeledErrorBoundInput = ({ ...props }: LabeledErrorBoundInputProps) => ( - infoTooltip(theme)} - > - {label} - - {hasTooltip && ( - - )} + + + {label} + + {hasTooltip && ( + + )} + alertIconStyles(theme, !!errorMessage)} validateTrigger={Object.keys(validationMethods)} diff --git a/superset-frontend/src/components/InfoTooltip/index.tsx b/superset-frontend/src/components/InfoTooltip/index.tsx index 7aa9afaebd84c..968f5df715980 100644 --- a/superset-frontend/src/components/InfoTooltip/index.tsx +++ b/superset-frontend/src/components/InfoTooltip/index.tsx @@ -65,6 +65,7 @@ export default function InfoTooltip({ trigger = 'hover', overlayStyle = defaultOverlayStyle, bgColor = defaultColor, + viewBox = '0 -2 24 24', }: InfoTooltipProps) { return ( - + ); } diff --git a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx index 9125d4a02ec08..ca4fd3a3af540 100644 --- a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx +++ b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx @@ -85,7 +85,7 @@ const CredentialsInfo = ({ {!isEditMode && ( <> - {`${t('How do you want to enter service account credentials?')}`} + {t('How do you want to enter service account credentials?')} @@ -106,22 +106,16 @@ const CredentialsInfo = ({ isEditMode || editNewDb ? (
- {`${t('Service Account')}`} + {t('Service Account')}