diff --git a/frontend/src/component/common/FormTemplate/FormTemplate.tsx b/frontend/src/component/common/FormTemplate/FormTemplate.tsx index 4ab109d196..deca849908 100644 --- a/frontend/src/component/common/FormTemplate/FormTemplate.tsx +++ b/frontend/src/component/common/FormTemplate/FormTemplate.tsx @@ -24,7 +24,8 @@ interface ICreateProps { title?: ReactNode; description: string; documentationLink: string; - documentationLinkLabel: string; + documentationIcon?: ReactNode; + documentationLinkLabel?: string; loading?: boolean; modal?: boolean; disablePadding?: boolean; @@ -165,12 +166,20 @@ const StyledSidebar = styled('aside')(({ theme }) => ({ }, })); -const StyledDescription = styled('p')(({ theme }) => ({ - color: theme.palette.common.white, +const StyledDescriptionCard = styled('article')(({ theme }) => ({ + display: 'flex', + flexFlow: 'column nowrap', + gap: theme.spacing(2), + alignItems: 'center', zIndex: 1, + color: theme.palette.common.white, position: 'relative', })); +const StyledDescription = styled('p')(({ theme }) => ({ + width: '100%', +})); + const StyledLinkContainer = styled('div')(({ theme }) => ({ margin: theme.spacing(3, 0), display: 'flex', @@ -195,6 +204,7 @@ const FormTemplate: React.FC = ({ description, children, documentationLink, + documentationIcon, documentationLinkLabel, loading, modal, @@ -261,6 +271,7 @@ const FormTemplate: React.FC = ({ @@ -300,6 +311,7 @@ const FormTemplate: React.FC = ({ condition={showGuidance && !smallScreen} show={ = ({ }; interface IMobileGuidance { - description: string; + description: ReactNode; documentationLink: string; + documentationIcon?: ReactNode; documentationLinkLabel?: string; } @@ -327,6 +340,7 @@ const MobileGuidance = ({ description, documentationLink, documentationLinkLabel, + documentationIcon, }: IMobileGuidance) => { const [open, setOpen] = useState(false); @@ -345,6 +359,7 @@ const MobileGuidance = ({ = ({ description, children, documentationLink, + documentationIcon, documentationLinkLabel = 'Learn more', showDescription = true, showLink = true, @@ -374,7 +391,15 @@ const Guidance: React.FC = ({ {description}} + show={ + + + {description} + + } /> } formatApiCode={formatApiCode} >