1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

feat(UI): tooltip html message support and width fix [EE-3445] (#8165)

Co-authored-by: testa113 <testa113>
This commit is contained in:
Prabhat Khera 2022-12-12 14:03:50 +13:00 committed by GitHub
parent 5cbf52377d
commit a1528475ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View file

@ -15,6 +15,7 @@ export interface Props {
children: ReactNode;
errors?: ReactNode;
required?: boolean;
setTooltipHtmlMessage?: boolean;
}
export function FormControl({
@ -25,6 +26,7 @@ export function FormControl({
children,
errors,
required,
setTooltipHtmlMessage,
}: PropsWithChildren<Props>) {
return (
<div
@ -41,7 +43,9 @@ export function FormControl({
{required && <span className="text-danger">*</span>}
{tooltip && <Tooltip message={tooltip} />}
{tooltip && (
<Tooltip message={tooltip} setHtmlMessage={setTooltipHtmlMessage} />
)}
</label>
<div className={sizeClassChildren(size)}>