Skip to content

Commit

Permalink
Field tooltip title with link fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vinuganesan committed Jul 4, 2022
1 parent 92d9360 commit 4bf9dad
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/components/Shared/InputLabelHelp.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ const useStyles = makeStyles(theme => ({
linkHelpLabel: {
paddingLeft: theme.spacing(0.5),
},
tooltipPopper: {
'& a': {
color: theme.palette.common.white,
},
},
}))

export default function InputLabelHelp({
Expand All @@ -38,7 +43,12 @@ export default function InputLabelHelp({
<Fragment>
<span>{inputLabel}</span>
{type === 'tooltip' ? (
<Tooltip title={tooltipTitle} placement={tooltipPlacement}>
<Tooltip
interactive
title={<div dangerouslySetInnerHTML={{ __html: tooltipTitle }} />}
placement={tooltipPlacement}
classes={{ popper: classes.tooltipPopper }}
>
<span className={classes.root}>
{icon ? icon : <HelpIcon />}
{label ? (
Expand Down

0 comments on commit 4bf9dad

Please sign in to comment.